From: Andrew Dolgov Date: Mon, 3 Mar 2014 17:04:28 +0000 (+0400) Subject: parser: experimentally set preservewhitespace to false X-Git-Tag: 1.12~38 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b69d94eeeb6ed539267a4328265354a45d23ba86;p=tt-rss.git parser: experimentally set preservewhitespace to false --- diff --git a/classes/feedparser.php b/classes/feedparser.php index 187875b5..efef3bca 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -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();