Skip to content
Snippets Groups Projects
Commit b69d94ee authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

parser: experimentally set preservewhitespace to false

parent 6bb05128
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ class FeedParser { ...@@ -27,6 +27,7 @@ class FeedParser {
libxml_use_internal_errors(true); libxml_use_internal_errors(true);
libxml_clear_errors(); libxml_clear_errors();
$this->doc = new DOMDocument(); $this->doc = new DOMDocument();
$this->doc->preserveWhiteSpace = false;
$this->doc->loadXML($data); $this->doc->loadXML($data);
mb_substitute_character("none"); mb_substitute_character("none");
...@@ -41,6 +42,7 @@ class FeedParser { ...@@ -41,6 +42,7 @@ class FeedParser {
libxml_clear_errors(); libxml_clear_errors();
$this->doc = new DOMDocument(); $this->doc = new DOMDocument();
$this->doc->preserveWhiteSpace = false;
$this->doc->loadXML($data); $this->doc->loadXML($data);
$error = libxml_get_last_error(); $error = libxml_get_last_error();
...@@ -64,6 +66,7 @@ class FeedParser { ...@@ -64,6 +66,7 @@ class FeedParser {
libxml_clear_errors(); libxml_clear_errors();
$this->doc = new DOMDocument(); $this->doc = new DOMDocument();
$this->doc->preserveWhiteSpace = false;
$this->doc->loadXML($data); $this->doc->loadXML($data);
$error = libxml_get_last_error(); $error = libxml_get_last_error();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment