parser: experimentally set preservewhitespace to false

This commit is contained in:
Andrew Dolgov 2014-03-03 21:04:28 +04:00
parent 6bb051285e
commit b69d94eeeb
1 changed files with 3 additions and 0 deletions

View 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();