From b69d94eeeb6ed539267a4328265354a45d23ba86 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Mar 2014 21:04:28 +0400 Subject: [PATCH] parser: experimentally set preservewhitespace to false --- classes/feedparser.php | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.39.5