diff options
author | Christian Schneider | 2009-10-07 14:19:08 +0000 |
---|---|---|
committer | Christian Schneider | 2009-10-07 14:19:08 +0000 |
commit | db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b (patch) | |
tree | 460d355f4833773cda2411843c9caa8559d7046d | |
parent | dc1fd16103595e62ffb9821fee67e35cc1bc5c81 (diff) | |
download | itools-db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b.tar.gz itools-db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b.tar.bz2 itools-db8cdb82a16a4782ee6fbfe41d1cbdebe64b4c7b.zip |
Strip low chars: No use in HTML pages and error in XML documents
-rw-r--r-- | it_html.class | 2 |
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); } |