diff options
author | FiveFilters.org <[email protected]> | 2021-08-17 16:02:56 +0200 |
---|---|---|
committer | FiveFilters.org <[email protected]> | 2021-08-17 16:02:56 +0200 |
commit | 731d21d80e885db262eb8d2ad787a290752d262b (patch) | |
tree | 48749d6e5f94930b443f786c81cbfa979be00914 /src/Readability.php | |
parent | abc413822a719be660a0a57cc1db3b7970e9e7f6 (diff) |
Fix table header missing
https://github.com/mozilla/readability/commit/9009f64f9ce8b7d593c1ef90864843f72e193cba
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 1 |
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' ) { |