We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c21492 commit d6cc782Copy full SHA for d6cc782
src/Readability.php
@@ -405,7 +405,7 @@ public function prepArticle(\DOMNode $articleContent): void
405
$this->clean($articleContent, 'h1');
406
}
407
$h2s = $articleContent->getElementsByTagName('h2');
408
- if (0 === $h1s && 1 === $h2s->length && mb_strlen($this->getInnerText($h2s->item(0), true, true)) < 100) {
+ if (0 === $h1s->length && 1 === $h2s->length && mb_strlen($this->getInnerText($h2s->item(0), true, true)) < 100) {
409
$this->clean($articleContent, 'h2');
410
411
0 commit comments