summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-03-07 15:41:24 +0000
committerAndres Rey <[email protected]>2017-03-07 15:41:24 +0000
commita0d42e6578d641f83443b863a333e7b1a9d50357 (patch)
tree79fb320415176329a9321d76b1af8d2b1a3a3d84 /src
parent3b73cde640956aa08cee59a9be44d941a819b5e6 (diff)
Fuck this, we are not going to normalize blank space.
Diffstat (limited to 'src')
-rw-r--r--src/HTMLParser.php7
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;
}