[fix] IFrame included in html sanitizer svg elements
This commit is contained in:
parent
5649950dd2
commit
a84dfdb29c
1 changed files with 1 additions and 1 deletions
|
|
@ -412,7 +412,7 @@ def sanitize_html(html):
|
|||
|
||||
# retuns html with escaped tags, escaped orphan >, <, etc.
|
||||
escaped_html = bleach.clean(html,
|
||||
tags=HTMLSanitizer.acceptable_elements + HTMLSanitizer.svg_elements,
|
||||
tags=HTMLSanitizer.acceptable_elements + HTMLSanitizer.svg_elements + ["iframe"],
|
||||
attributes={"*": HTMLSanitizer.acceptable_attributes, "svg": HTMLSanitizer.svg_attributes},
|
||||
styles=bleach_whitelist.all_styles,
|
||||
strip_comments=False)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue