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 d3af559 commit 6c21492Copy full SHA for 6c21492
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 (1 === $h2s->length && mb_strlen($this->getInnerText($h2s->item(0), true, true)) < 100) {
+ if (0 === $h1s && 1 === $h2s->length && mb_strlen($this->getInnerText($h2s->item(0), true, true)) < 100) {
409
$this->clean($articleContent, 'h2');
410
411
0 commit comments