diff options
author | Andres Rey <[email protected]> | 2017-11-30 20:06:45 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-11-30 20:06:45 +0000 |
commit | fc4834c588c61ab42b89e3324fa01d467f4a8d00 (patch) | |
tree | 188d5a03b43a385a7e7ec71b204b8d3a840c0370 /src/Readability.php | |
parent | 89555a061f7166a85c2a8ea0a7176067990c64a3 (diff) |
Remove duplicated functions
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php index b80641e..1cd7c1f 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -555,7 +555,7 @@ class Readability // EXPERIMENTAL foreach ($node->getChildren() as $child) { /** @var $child DOMNode */ - if ($child->nodeType === XML_TEXT_NODE && mb_strlen(trim(NodeUtility::getTextContent($child))) > 0) { + if ($child->nodeType === XML_TEXT_NODE && mb_strlen(trim($child->getTextContent())) > 0) { $newNode = $node->createNode($child, 'p'); $child->parentNode->replaceChild($newNode, $child); } |