adjusts html saniziter settings to match expected types
This commit is contained in:
parent
bd1bc59859
commit
0e6e55a920
|
@ -268,11 +268,11 @@ class HTMLProcessor:
|
|||
return {
|
||||
"tags": inline_tags if inline else all_tags,
|
||||
"attributes": inlines_attributes if inline else attributes,
|
||||
"empty": {} if inline else {"hr", "br", "img"},
|
||||
"separate": {"a"} if inline else {
|
||||
"empty": set() if inline else set({"hr", "br", "img"}),
|
||||
"separate": set({"a"}) if inline else set({
|
||||
"a", "p", "li", "table", "tr", "th", "td", "br", "hr", "img",
|
||||
},
|
||||
"whitespace": {},
|
||||
}),
|
||||
"whitespace": set(),
|
||||
"keep_typographic_whitespace": True,
|
||||
"add_nofollow": False,
|
||||
"autolink": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user