From 883c9029aba45ef2351296490d4cc91725f6c2ba Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Tue, 28 Nov 2017 20:59:13 +0000 Subject: Add node to elementsToScore after converting it to a P node --- src/Readability.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/Readability.php b/src/Readability.php index 01d428a..4e0d4a1 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -477,8 +477,7 @@ class Readability $node = $pNode; $elementsToScore[] = $node; } elseif (!NodeUtility::hasSingleChildBlockElement($node)) { - NodeUtility::setNodeTag($node, 'p'); - $elementsToScore[] = $node; + $elementsToScore[] = NodeUtility::setNodeTag($node, 'p'); } else { // EXPERIMENTAL foreach ($node->getChildren() as $child) { -- cgit v1.2.3