]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix various tags being stuck because of invalid HTML markup being generated (closes...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 21 Feb 2012 08:16:29 +0000 (12:16 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 21 Feb 2012 08:16:29 +0000 (12:16 +0400)
include/functions.php
include/rssfuncs.php

index 29f50f87689567649b77d9fafdf1c2f4a0456e7d..25c188ee6e8df8e5b3f03cd3e361e9298a3ea1e5 100644 (file)
 
                $node = $doc->getElementsByTagName('body')->item(0);
 
-               return $doc->saveXML($node);
+               return $doc->saveXML($node, LIBXML_NOEMPTYTAG);
        }
 
        /**
 
                // 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;
        }
index 03fc068ea68bde7d36fdb2a4a9a8be2e6cfd4318..838087d9055e46aa8b663d3ff076261dd26fe609 100644 (file)
 
                $node = $doc->getElementsByTagName('body')->item(0);
 
-               return $doc->saveXML($node);
+               return $doc->saveXML($node, LIBXML_NOEMPTYTAG);
        }
 
        function expire_cached_files($debug) {