From 757adffdf0dfd912a5bd877ed915ca446b1bc973 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 18 Feb 2012 15:01:39 +0100 Subject: htmlesc now uses htmlspecialchars instead of htmlentities --- ratatoeskr/sys/utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ratatoeskr/sys/utils.php b/ratatoeskr/sys/utils.php index d6093ca..c2f8e66 100644 --- a/ratatoeskr/sys/utils.php +++ b/ratatoeskr/sys/utils.php @@ -186,7 +186,7 @@ function strleft($s1, $s2) { /* * Function: htmlesc - * Escape HTML (shorter than htmlentities($text, ENT_QUOTES, "UTF-8")) + * Escape HTML (shorter than htmlspecialchars) * * Parameters: * $text - Input text. @@ -196,7 +196,7 @@ function strleft($s1, $s2) { */ function htmlesc($text) { - return htmlentities($text, ENT_QUOTES, "UTF-8"); + return htmlspecialchars($text, ENT_QUOTES, "UTF-8"); } /* -- cgit v1.2.3-54-g00ecf