Handle blockquote element and type attribute
This commit is contained in:
parent
77d2b87b1e
commit
314ccaba48
4
mbox2web
4
mbox2web
|
@ -261,7 +261,7 @@ class HTMLPart(html.parser.HTMLParser):
|
||||||
allowed_tags = [
|
allowed_tags = [
|
||||||
"h2", "a", "wbr", "hr", "pre", "img", "font", "i", "br", "table", "tr",
|
"h2", "a", "wbr", "hr", "pre", "img", "font", "i", "br", "table", "tr",
|
||||||
"th", "td", "b", "select", "option", "input", "sup", "address",
|
"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" ]
|
hide_tags = [ "title" ]
|
||||||
ignore_tags = [ "html", "head", "body", "marquee", "meta", "form", ]
|
ignore_tags = [ "html", "head", "body", "marquee", "meta", "form", ]
|
||||||
|
@ -313,7 +313,7 @@ class HTMLPart(html.parser.HTMLParser):
|
||||||
"border", "alt", "size", "face", "width", "height", "hspace",
|
"border", "alt", "size", "face", "width", "height", "hspace",
|
||||||
"cellpadding", "cellspacing", "bgcolor", "valign", "nowrap",
|
"cellpadding", "cellspacing", "bgcolor", "valign", "nowrap",
|
||||||
"color", "colspan", "name", "value", "type", "align", "clear",
|
"color", "colspan", "name", "value", "type", "align", "clear",
|
||||||
"noshade"
|
"noshade", "type",
|
||||||
]
|
]
|
||||||
clean_attrs = []
|
clean_attrs = []
|
||||||
for a in attrs:
|
for a in attrs:
|
||||||
|
|
Loading…
Reference in New Issue