8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f0302 commit f1a79fbCopy full SHA for f1a79fb
readability/readability.py
@@ -350,8 +350,9 @@ def remove_unlikely_candidates(self):
350
if len(s) < 2:
351
continue
352
#self.debug(s)
353
- if REGEXES['unlikelyCandidatesRe'].search(s) and (not REGEXES['okMaybeItsACandidateRe'].search(s)) and elem.tag != 'body':
+ if REGEXES['unlikelyCandidatesRe'].search(s) and (not REGEXES['okMaybeItsACandidateRe'].search(s)) and elem.tag not in ['html', 'body']:
354
self.debug("Removing unlikely candidate - %s" % describe(elem))
355
+ import ipdb; ipdb.set_trace()
356
elem.drop_tree()
357
358
def transform_misused_divs_into_paragraphs(self):
0 commit comments