function customHtmlentities($string) { if (is_array($string)) { return array_map('customHtmlentities', $string); } return _root::nullbyteprotect(htmlentities($string, ENT_QUOTES, _root::getConfigVar('encodage.charset'), _root::getConfigVar('encodage.double_encode', 1))); }