From 39e8a729bb74b61413f2ac2606f94dc705f1650c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20G=2E=20J=C3=B8rgensen?= Date: Wed, 15 Feb 2017 21:06:11 +0100 Subject: [PATCH] Use htmlspecialchars() instead of htmlentities() http://stackoverflow.com/a/46491/1870710 --- src/Klein/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Klein/ServiceProvider.php b/src/Klein/ServiceProvider.php index ab2dec33..3128d797 100644 --- a/src/Klein/ServiceProvider.php +++ b/src/Klein/ServiceProvider.php @@ -238,7 +238,7 @@ public static function markdown($str, $args = null) */ public static function escape($str, $flags = ENT_QUOTES) { - return htmlentities($str, $flags, 'UTF-8'); + return htmlspecialchars($str, $flags, 'UTF-8'); } /**