Handle blockquote element and type attribute

This commit is contained in:
Peter J. Holzer 2019-03-04 21:07:18 +01:00
parent 77d2b87b1e
commit 314ccaba48
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ class HTMLPart(html.parser.HTMLParser):
allowed_tags = [
"h2", "a", "wbr", "hr", "pre", "img", "font", "i", "br", "table", "tr",
"th", "td", "b", "select", "option", "input", "sup", "address",
"center", "p", "h1", "dl", "h3", "ul", "li", "ol", "u"
"center", "p", "h1", "dl", "h3", "ul", "li", "ol", "u", "blockquote",
]
hide_tags = [ "title" ]
ignore_tags = [ "html", "head", "body", "marquee", "meta", "form", ]
@ -313,7 +313,7 @@ class HTMLPart(html.parser.HTMLParser):
"border", "alt", "size", "face", "width", "height", "hspace",
"cellpadding", "cellspacing", "bgcolor", "valign", "nowrap",
"color", "colspan", "name", "value", "type", "align", "clear",
"noshade"
"noshade", "type",
]
clean_attrs = []
for a in attrs: