From 06b17e82dbdb05e7f10078e48c3e9db5dfe38668 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 9 Apr 2020 11:03:07 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02755=20-=20Security=20hardening?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/utils.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/utils.inc.php b/application/utils.inc.php index 4ffa4aadf9..2cf915aa22 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -1478,6 +1478,17 @@ class utils return htmlentities($sValue, ENT_QUOTES, 'UTF-8'); } + /** + * Helper to encapsulation iTop's html_entity_decode + * @param string $sValue + * @return string + * @since 2.7.0 + */ + public static function HtmlEntityDecode($sValue) + { + return html_entity_decode($sValue, ENT_QUOTES, 'UTF-8'); + } + /** * Convert a string containing some (valid) HTML markup to plain text * @param string $sHtml