diff --git a/application/utils.inc.php b/application/utils.inc.php index 4ffa4aadf..2cf915aa2 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