diff options
author | Andres Rey <[email protected]> | 2017-11-05 12:53:50 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-11-05 12:53:50 +0000 |
commit | f66b5ac10474ccfb880439a78d10b46f1abfe45a (patch) | |
tree | 5c065d9fc25ab6c42cb26367fbf28a68100405cc /src/HTMLParser.php | |
parent | da1d209d9feac2b7bc4d01baf42b75eddd0e56e0 (diff) |
Cleanup
Diffstat (limited to 'src/HTMLParser.php')
-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; } |