Font tag has attrs too

This commit is contained in:
Samuel Clay 2019-07-31 11:08:09 -07:00
parent 971c4ddded
commit b273b3c36c

View file

@ -227,7 +227,7 @@ class Scrubber(object):
def _scrub_tag_font(self, node):
attrs = {}
if hasattr(node, 'attrs') and isinstance(node.attrs, dict):
for k, v in node.attrs:
for k, v in node.attrs.items():
if k.lower() == 'size' and v.startswith('+'):
# Remove "size=+0"
continue