diff options
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/it_xml.class b/it_xml.class index bf71031..a861245 100644 --- a/it_xml.class +++ b/it_xml.class @@ -133,6 +133,9 @@ function _sanitize($xmldata, $isutf8 = null) if ($isutf8 && preg_match('/[^\x80-\xff][\x80-\xff][^\x80-\xff]/', $xmldata)) $xmldata = preg_replace('/[\x80-\xff]{1,4}/e', "it_xml::_utf8_fix('\\0')", $xmldata); + if (!$isutf8) + $xmldata = it_html::latinize($xmldata); + return array($xmldata, $isutf8); } |