We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fab5ff commit 638f73fCopy full SHA for 638f73f
1 file changed
readability/readability.py
@@ -452,6 +452,7 @@ def sanitize(self, node, candidates):
452
for kind in ['p', 'img', 'li', 'a', 'embed', 'input']:
453
counts[kind] = len(el.findall('.//%s' % kind))
454
counts["li"] -= 100
455
+ counts["input"] -= len(el.findall('.//input[@type="hidden"]'))
456
457
# Count the text length excluding any surrounding whitespace
458
content_length = text_length(el)
0 commit comments