summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-02-21 12:16:29 +0400
committerAndrew Dolgov <[email protected]>2012-02-21 12:16:29 +0400
commit7b8ff151ed3d36214156906805e7e6327f59793c (patch)
treeec9e814128406ae6f1eb7cca475c176e3e1d2803 /include
parentba213fe5f05579f70d54c2a757e6571ed5fb0a9e (diff)
fix various tags being stuck because of invalid HTML markup being generated (closes #357)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
-rw-r--r--include/rssfuncs.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 29f50f876..25c188ee6 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 03fc068ea..838087d90 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) {