diff options
author | Andres Rey <[email protected]> | 2016-12-11 11:45:26 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-12-11 11:45:26 +0000 |
commit | 3f80edf8a2ff66be411815e12ceeb1d4ea584d46 (patch) | |
tree | 0984905ecd8221ec549bc704c1e57c8f8b59134b /src | |
parent | 532b011de418c5ac5d152150c393aff6495cd0d4 (diff) |
Removed conditional cleaning of crlfs
Diffstat (limited to 'src')
-rw-r--r-- | src/HTMLParser.php | 4 |
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); } |