diff options
author | Andres Rey <[email protected]> | 2017-11-29 00:16:41 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-11-29 00:16:41 +0000 |
commit | 7ca6c33aadb4933175a9c9da5f824393430f545c (patch) | |
tree | 2ec584813af8e7d89aacc45766952ec2dc7503f3 /src | |
parent | 3a2259ad3bc4495725b9b0f6fe3b6b82c5193203 (diff) |
Replace sibling node when changing tag
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 61174b1..fd35f8a 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -879,7 +879,7 @@ class Readability * Turn it into a div so it doesn't get filtered out later by accident. */ - NodeUtility::setNodeTag($sibling, 'div'); + $sibling = NodeUtility::setNodeTag($sibling, 'div'); } $import = $articleContent->importNode($sibling, true); |