diff options
author | Andres Rey <[email protected]> | 2017-11-29 00:28:49 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-11-29 00:28:49 +0000 |
commit | d4c22a6625fbcfdfa9d3a4c7cf65561181e07b4c (patch) | |
tree | 45cd216fdb759ef446028795787653048e2fd75b /src | |
parent | 7ca6c33aadb4933175a9c9da5f824393430f545c (diff) |
Fix small mistake on node cleaning
Diffstat (limited to 'src')
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php index fd35f8a..abeffbb 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1104,7 +1104,7 @@ class Readability $next = $node->getNextNode($node); while ($next && $next !== $endOfSearchMarkerNode) { if (preg_match($regex, sprintf('%s %s', $next->getAttribute('class'), $next->getAttribute('id')))) { - $next = NodeUtility::removeAndGetNext($node); + $next = NodeUtility::removeAndGetNext($next); } else { $next = $next->getNextNode($next); } |