diff options
Diffstat (limited to 'src/HTMLParser.php')
-rw-r--r-- | src/HTMLParser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index b896ef7..cea379c 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -1486,7 +1486,7 @@ class HTMLParser private function hasSinglePNode(Readability $node) { // There should be exactly 1 element child which is a P: - if (count($children = $node->getChildren()) !== 1 || !$children[0]->tagNameEqualsTo('p')) { + if (count($children = $node->getChildren(true)) !== 1 || !$children[0]->tagNameEqualsTo('p')) { return false; } |