N°2755 - Security hardening

This commit is contained in:
Eric
2020-04-09 11:03:07 +02:00
parent 2add79a473
commit 06b17e82db

View File

@@ -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