summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2013-03-27 16:27:16 +0000
committerUrban Müller2013-03-27 16:27:16 +0000
commite21ed9ee1bbd7134e3539e849de2e36d0ac076f5 (patch)
tree4155db3ed244fe087ee83859066cba6e266f2946
parent8c36c64d8a9abbb008cfba873de6e3087025fbf2 (diff)
downloaditools-e21ed9ee1bbd7134e3539e849de2e36d0ac076f5.tar.gz
itools-e21ed9ee1bbd7134e3539e849de2e36d0ac076f5.tar.bz2
itools-e21ed9ee1bbd7134e3539e849de2e36d0ac076f5.zip
remove empty tags in ::sanitize
-rw-r--r--it_html.class2
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
}
/**