From 077466933108c70df4f40b14d3cefdcc1f4a52c4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Mar 2015 00:37:47 +0100 Subject: [PATCH] Update comment --- htdocs/core/lib/functions.lib.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 666a0dd2e48..3a898a3f3f5 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -3953,16 +3953,14 @@ function dol_html_entity_decode($a,$b,$c='UTF-8') } /** - * Replace htmlentities functions to manage errors - * http://php.net/manual/en/function.htmlentities.php - * TODO Remove this function to replace it with direct htmlentities. + * Replace htmlentities functions to manage errors http://php.net/manual/en/function.htmlentities.php + * Goal of this function is to be sure to have default values of htmlentities that match what we need. * * @param string $string The input string. * @param int $flags Flags(see PHP doc above) * @param string $encoding Encoding * @param bool $double_encode When double_encode is turned off PHP will not encode existing html entities * @return string $ret Encoded string - * @deprecated Since PHP4 support is no longer available, this function does not make sense. */ function dol_htmlentities($string, $flags=null, $encoding='UTF-8', $double_encode=false) {