diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Readability.php | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |