diff options
author | Christian Schneider | 2007-07-05 14:59:44 +0000 |
---|---|---|
committer | Christian Schneider | 2007-07-05 14:59:44 +0000 |
commit | 714bd60ae00fa7368943086099f4754e13ca9b08 (patch) | |
tree | b7bbf1fbf2f6cbf67033bd8243045b5a647f8b04 | |
parent | 3279ee8a5057f915d12cf4a0693ecfa0449d3f93 (diff) | |
download | itools-714bd60ae00fa7368943086099f4754e13ca9b08.tar.gz itools-714bd60ae00fa7368943086099f4754e13ca9b08.tar.bz2 itools-714bd60ae00fa7368943086099f4754e13ca9b08.zip |
Remove still encoded numeric entities from sanitized text
-rw-r--r-- | html.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -263,7 +263,7 @@ function sanitize($html) $result .= it_html::sanitize($head) . "<$tagname />" . it_html::sanitize($tail); } else - $result = it_html::Q(html_entity_decode(strip_tags($html))); + $result = it_html::Q(it::replace('&#\d+;' => "", html_entity_decode(strip_tags($html)))); return $result; } |