]> git.wh0rd.org - tt-rss.git/commitdiff
disable htmLawed tag balancing (should be handled later by DOMDocument) (closes ...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Dec 2012 06:52:44 +0000 (10:52 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Dec 2012 06:52:44 +0000 (10:52 +0400)
include/functions.php

index 1db3b117ca0e05aed9e0a76b9c6e96e529610039..9c107c5919ce2f9534378a6ba3f465dc79c80f29 100644 (file)
 
                $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)) {