summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Readability.php b/src/Readability.php
index 12d7af1..078663a 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -707,6 +707,7 @@ class Readability
if (
preg_match(NodeUtility::$regexps['unlikelyCandidates'], $matchString) &&
!preg_match(NodeUtility::$regexps['okMaybeItsACandidate'], $matchString) &&
+ !$node->hasAncestorTag( 'table') &&
$node->nodeName !== 'body' &&
$node->nodeName !== 'a'
) {