diff options
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Readability.php b/src/Readability.php index 3f4d807..e0c9abf 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -831,6 +831,10 @@ class Readability } } + if ($next->isPhrasingContent()) { + break; + } + $this->logger->debug('[PrepDocument] Replacing BR with a P node...'); // Otherwise, make this node a child of the new <p>. |