diff options
author | Urban Müller | 2013-03-27 16:27:16 +0000 |
---|---|---|
committer | Urban Müller | 2013-03-27 16:27:16 +0000 |
commit | e21ed9ee1bbd7134e3539e849de2e36d0ac076f5 (patch) | |
tree | 4155db3ed244fe087ee83859066cba6e266f2946 | |
parent | 8c36c64d8a9abbb008cfba873de6e3087025fbf2 (diff) | |
download | itools-e21ed9ee1bbd7134e3539e849de2e36d0ac076f5.tar.gz itools-e21ed9ee1bbd7134e3539e849de2e36d0ac076f5.tar.bz2 itools-e21ed9ee1bbd7134e3539e849de2e36d0ac076f5.zip |
remove empty tags in ::sanitize
-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 95c33fc..e874ef4 100644 --- a/it_html.class +++ b/it_html.class @@ -457,7 +457,7 @@ function sanitize($html) else $result = it::replace(array('&(#\d+;)' => '&$1'), it_html::Q(html_entity_decode(strip_tags($html), ENT_COMPAT, $charset))); - return $GLOBALS['debug_q'] ? "<span style='background:#8FF'>$result</span>" : $result; + return $GLOBALS['debug_q'] ? "<span style='background:#8FF'>$result</span>" : it::replace(array('<(div|p|i|b|a)></\1>' => ""), $result); # remove empty tags } /** |