]> git.wh0rd.org Git - tt-rss.git/commitdiff
parser: experimentally set preservewhitespace to false
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 3 Mar 2014 17:04:28 +0000 (21:04 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 3 Mar 2014 17:04:28 +0000 (21:04 +0400)
classes/feedparser.php

index 187875b5f9cbf380d70147454ace75ddc3409917..efef3bca41a0914c01b5f1c85e3588840ee95d2b 100644 (file)
@@ -27,6 +27,7 @@ class FeedParser {
                libxml_use_internal_errors(true);
                libxml_clear_errors();
                $this->doc = new DOMDocument();
+               $this->doc->preserveWhiteSpace = false;
                $this->doc->loadXML($data);
 
                mb_substitute_character("none");
@@ -41,6 +42,7 @@ class FeedParser {
                                libxml_clear_errors();
 
                                $this->doc = new DOMDocument();
+                               $this->doc->preserveWhiteSpace = false;
                                $this->doc->loadXML($data);
 
                                $error = libxml_get_last_error();
@@ -64,6 +66,7 @@ class FeedParser {
                                                libxml_clear_errors();
 
                                                $this->doc = new DOMDocument();
+                                               $this->doc->preserveWhiteSpace = false;
                                                $this->doc->loadXML($data);
 
                                                $error = libxml_get_last_error();