From: Andrew Dolgov Date: Wed, 26 Dec 2012 06:52:44 +0000 (+0400) Subject: disable htmLawed tag balancing (should be handled later by DOMDocument) (closes ... X-Git-Tag: 1.7.0~112 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d8858f27c60bb309b3164ea1e941e9f45730f6ee;p=tt-rss.git disable htmLawed tag balancing (should be handled later by DOMDocument) (closes #521) --- diff --git a/include/functions.php b/include/functions.php index 1db3b117..9c107c59 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2523,7 +2523,7 @@ $res = trim($str); if (!$res) return ''; - $config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1); + $config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1, 'balance' => 0); $res = htmLawed($res, $config); if (get_pref($link, "STRIP_IMAGES", $owner)) {