From 2b5af601d5a1576235d4e4e9093a056041ca8ff8 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 15 Sep 2015 22:25:08 +0200 Subject: [PATCH] Do not format output to avoid breaking apps It'll require to jump to 2.0.0 and I think it's to soon --- src/Readability.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Readability.php b/src/Readability.php index 9cd8239..8807c37 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -198,7 +198,6 @@ class Readability $this->dom = new \DOMDocument(); $this->dom->preserveWhiteSpace = false; - $this->dom->formatOutput = true; if (PHP_VERSION_ID >= 50400) { $this->dom->loadHTML($html, LIBXML_NOBLANKS | LIBXML_COMPACT | LIBXML_NOERROR);