diff options
Diffstat (limited to 'src/HTMLParser.php')
-rw-r--r-- | src/HTMLParser.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 1b1a516..1ef4489 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -99,7 +99,6 @@ class HTMLParser 'weightClasses' => true, 'removeReadabilityTags' => true, 'fixRelativeURLs' => false, - 'normalizeSpaces' => false, 'substituteEntities' => true, 'originalURL' => 'http://fakehost', ]; @@ -341,12 +340,6 @@ class HTMLParser } } - if ($this->getConfig()->getOption('normalizeSpaces')) { - foreach ($article->getElementsByTagName('p') as $node) { - $node->nodeValue = preg_replace($this->regexps['normalize'], ' ', $node->nodeValue); - } - } - return $article; } |