summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2009-10-07 14:19:08 +0000
committerChristian Schneider2009-10-07 14:19:08 +0000
commitdb8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b (patch)
tree460d355f4833773cda2411843c9caa8559d7046d /it_html.class
parentdc1fd16103595e62ffb9821fee67e35cc1bc5c81 (diff)
downloaditools-db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b.tar.gz
itools-db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b.tar.bz2
itools-db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b.zip
Strip low chars: No use in HTML pages and error in XML documents
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 2175dd3..15442c3 100644
--- a/it_html.class
+++ b/it_html.class
@@ -424,7 +424,7 @@ function sanitize($html)
function q($string)
{
if ($GLOBALS['it_html']->p['charset'] == "iso-8859-1")
- $string = preg_replace('/[\x80-\x9f]/', ' ', strtr($string, array("\x80" => "EUR", "\x82" => "'", "\x84" => "\"", "\x85" => "...", "\x8a" => "S", "\x8c" => "OE", "\x8e" => "Z", "\x91" => "'", "\x92" => "'", "\x93" => "\"", "\x94" => "\"", "\x96" => "-", "\x97" => "-", "\x9a" => "s", "\x9e" => "z")));
+ $string = preg_replace('/[\x00-\x08\x0b-\x0c\x0e-\x1f\x80-\x9f]/', ' ', strtr($string, array("\x80" => "EUR", "\x82" => "'", "\x84" => "\"", "\x85" => "...", "\x8a" => "S", "\x8c" => "OE", "\x8e" => "Z", "\x91" => "'", "\x92" => "'", "\x93" => "\"", "\x94" => "\"", "\x96" => "-", "\x97" => "-", "\x9a" => "s", "\x9e" => "z")));
return htmlspecialchars($string);
}