Internal: Add HtmlEntityDecode() to utils, a counterpart to HtmlEntities()

This commit is contained in:
Stephen Abello
2020-02-12 14:48:33 +01:00
parent a1cdb46663
commit 12ce718662

View File

@@ -1505,6 +1505,17 @@ class utils
public static function HtmlEntities($sValue)
{
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');
}
/**