summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php4
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>.