summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-12-11 11:45:26 +0000
committerAndres Rey <[email protected]>2016-12-11 11:45:26 +0000
commit3f80edf8a2ff66be411815e12ceeb1d4ea584d46 (patch)
tree0984905ecd8221ec549bc704c1e57c8f8b59134b /src
parent532b011de418c5ac5d152150c393aff6495cd0d4 (diff)
Removed conditional cleaning of crlfs
Diffstat (limited to 'src')
-rw-r--r--src/HTMLParser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php
index 9d00b26..022f616 100644
--- a/src/HTMLParser.php
+++ b/src/HTMLParser.php
@@ -329,8 +329,8 @@ class HTMLParser
foreach ($node->getChildren() as $child) {
if ($child->isText()) {
/** @var Readability $child */
- // Check if there's actual content on the node but leave crlfs.
- if (trim($child->getTextContent(), " \t\0\x0B")) {
+ // Check if there's actual content on the node.
+ if (trim($child->getTextContent())) {
$newNode = $node->createNode($child, 'p');
$child->replaceChild($newNode);
}