Do not format output to avoid breaking apps

It'll require to jump to 2.0.0 and I think it's to soon
This commit is contained in:
Jeremy Benoist
2015-09-15 22:25:08 +02:00
parent d01eb2ac1e
commit 2b5af601d5
-1
View File
@@ -198,7 +198,6 @@ class Readability
$this->dom = new \DOMDocument(); $this->dom = new \DOMDocument();
$this->dom->preserveWhiteSpace = false; $this->dom->preserveWhiteSpace = false;
$this->dom->formatOutput = true;
if (PHP_VERSION_ID >= 50400) { if (PHP_VERSION_ID >= 50400) {
$this->dom->loadHTML($html, LIBXML_NOBLANKS | LIBXML_COMPACT | LIBXML_NOERROR); $this->dom->loadHTML($html, LIBXML_NOBLANKS | LIBXML_COMPACT | LIBXML_NOERROR);