summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-11-30 20:06:45 +0000
committerAndres Rey <[email protected]>2017-11-30 20:06:45 +0000
commitfc4834c588c61ab42b89e3324fa01d467f4a8d00 (patch)
tree188d5a03b43a385a7e7ec71b204b8d3a840c0370 /src/Readability.php
parent89555a061f7166a85c2a8ea0a7176067990c64a3 (diff)
Remove duplicated functions
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php2
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);
}