From: Andrew Dolgov Date: Tue, 21 Feb 2012 08:16:29 +0000 (+0400) Subject: fix various tags being stuck because of invalid HTML markup being generated (closes... X-Git-Tag: 1.5.10~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7b8ff151ed3d36214156906805e7e6327f59793c;p=tt-rss.git fix various tags being stuck because of invalid HTML markup being generated (closes #357) --- diff --git a/include/functions.php b/include/functions.php index 29f50f87..25c188ee 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2674,7 +2674,7 @@ $node = $doc->getElementsByTagName('body')->item(0); - return $doc->saveXML($node); + return $doc->saveXML($node, LIBXML_NOEMPTYTAG); } /** @@ -4965,7 +4965,7 @@ // http://tt-rss.org/forum/viewtopic.php?f=1&t=970 if ($node) - return $doc->saveXML($node); + return $doc->saveXML($node, LIBXML_NOEMPTYTAG); else return $html; } diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 03fc068e..838087d9 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1355,7 +1355,7 @@ $node = $doc->getElementsByTagName('body')->item(0); - return $doc->saveXML($node); + return $doc->saveXML($node, LIBXML_NOEMPTYTAG); } function expire_cached_files($debug) {