From 731d21d80e885db262eb8d2ad787a290752d262b Mon Sep 17 00:00:00 2001 From: "FiveFilters.org" Date: Tue, 17 Aug 2021 16:02:56 +0200 Subject: Fix table header missing https://github.com/mozilla/readability/commit/9009f64f9ce8b7d593c1ef90864843f72e193cba --- src/Readability.php | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Readability.php') 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' ) { -- cgit v1.2.3