diff options
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class index 57f4555..7765054 100644 --- a/it_xml.class +++ b/it_xml.class @@ -19,6 +19,7 @@ ** it_xml.class - XML parser / object factory */ +#[AllowDynamicProperties] class it_xml { /* @@ -140,7 +141,7 @@ function _sanitize($xmldata, $isutf8 = null) # Encode non-utf8 characters in a string, leave utf8 alone static function _utf8_fix($str) { - return preg_match('/^([\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]|[\xf0-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf])$/', $str) ? $str : utf8_encode($str); + return preg_match('/^([\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]|[\xf0-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf])$/', $str) ? $str : it::utf8_encode($str); } function consume(/* $p */) |