diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/HTMLParser.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 4e6219e..636796c 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -653,11 +653,11 @@ class HTMLParser // Remove DIV, SECTION, and HEADER nodes without any content(e.g. text, image, video, or iframe). if (($node->tagNameEqualsTo('div') || $node->tagNameEqualsTo('section') || $node->tagNameEqualsTo('header') || - $node->tagNameEqualsTo('h1') || $node->tagNameEqualsTo('h2') || $node->tagNameEqualsTo('h3') || - $node->tagNameEqualsTo('h4') || $node->tagNameEqualsTo('h5') || $node->tagNameEqualsTo('h6') ) && + $node->tagNameEqualsTo('h1') || $node->tagNameEqualsTo('h2') || $node->tagNameEqualsTo('h3') || + $node->tagNameEqualsTo('h4') || $node->tagNameEqualsTo('h5') || $node->tagNameEqualsTo('h6')) && $node->isElementWithoutContent()) { - $node = $node->removeAndGetNext($node); - continue; + $node = $node->removeAndGetNext($node); + continue; } |