/trunk/xml_utils.inc.php |
---|
141,7 → 141,7 |
} |
function html_named_to_numeric_entities($str) { |
if (!mb_detect_encoding($str, 'UTF-8', true)) $str = utf8_encode($str); |
$str = mb_convert_encoding($str, 'UTF-8'); |
return mb_htmlentities(decodeNamedEntities($str)); |
} |