summaryrefslogtreecommitdiff
path: root/html.class
diff options
context:
space:
mode:
authorChristian Schneider2007-07-05 14:59:44 +0000
committerChristian Schneider2007-07-05 14:59:44 +0000
commit714bd60ae00fa7368943086099f4754e13ca9b08 (patch)
treeb7bbf1fbf2f6cbf67033bd8243045b5a647f8b04 /html.class
parent3279ee8a5057f915d12cf4a0693ecfa0449d3f93 (diff)
downloaditools-714bd60ae00fa7368943086099f4754e13ca9b08.tar.gz
itools-714bd60ae00fa7368943086099f4754e13ca9b08.tar.bz2
itools-714bd60ae00fa7368943086099f4754e13ca9b08.zip
Remove still encoded numeric entities from sanitized text
Diffstat (limited to 'html.class')
-rw-r--r--html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.class b/html.class
index 0551f78..f5ba5b3 100644
--- a/html.class
+++ b/html.class
@@ -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;
}