diff options
author | Andres Rey <[email protected]> | 2017-11-28 20:59:13 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-11-28 20:59:13 +0000 |
commit | 883c9029aba45ef2351296490d4cc91725f6c2ba (patch) | |
tree | 726fdc61a010f0e3d8cf8a5b48e39177a1303b10 /src/Readability.php | |
parent | b06bbf1374f09db17504d17b59e714a5be21df6f (diff) |
Add node to elementsToScore after converting it to a P node
Diffstat (limited to 'src/Readability.php')
-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) { |