From 7b8ff151ed3d36214156906805e7e6327f59793c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 21 Feb 2012 12:16:29 +0400 Subject: [PATCH] fix various tags being stuck because of invalid HTML markup being generated (closes #357) --- include/functions.php | 4 ++-- include/rssfuncs.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5