summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
authorChristian Schneider2012-07-02 15:30:50 +0000
committerChristian Schneider2012-07-02 15:30:50 +0000
commit57da96485e0671fc34f2ea862b872af186ff043c (patch)
tree5a312f9a618f262171d3e9998b83a0293a068b02 /it_xml.class
parent58a0444eabccaba87f3050b7f264e404f0cec6d4 (diff)
downloaditools-57da96485e0671fc34f2ea862b872af186ff043c.tar.gz
itools-57da96485e0671fc34f2ea862b872af186ff043c.tar.bz2
itools-57da96485e0671fc34f2ea862b872af186ff043c.zip
Improved cleanup handling for illegal characters in html, now handles utf-8 as well
Diffstat (limited to 'it_xml.class')
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index f854682..c98b6eb 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -134,7 +134,7 @@ function _sanitize($xmldata, $isutf8 = null)
# If not utf-8, remove characters illegal for latin-1
if (!$isutf8 && preg_match('/[\x00-\x08\x0b-\x0c\x0e-\x1f\x80-\x9f]/', $xmldata))
- $xmldata = it_html::latinize($xmldata);
+ $xmldata = it_html::_cleanup($xmldata, $isutf8 ? "utf-8" : "iso-8859-1");
return array($xmldata, $isutf8);
}