allow more html5 tags
This commit is contained in:
parent
a8e76893d3
commit
22eecc22e4
1 changed files with 3 additions and 3 deletions
|
@ -225,15 +225,15 @@ def sanitize_html(html, tags=None, wikilinks=False):
|
||||||
if not tags:
|
if not tags:
|
||||||
tags = [
|
tags = [
|
||||||
# inline formatting
|
# inline formatting
|
||||||
'b', 'code', 'i', 's', 'sub', 'sup', 'u',
|
'b', 'bdi', 'code', 'em', 'i', 'q', 's', 'span', 'strong', 'sub', 'sup', 'u',
|
||||||
# block formatting
|
# block formatting
|
||||||
'blockquote', 'h1', 'h2', 'h3', 'p', 'pre',
|
'blockquote', 'cite', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'pre',
|
||||||
# lists
|
# lists
|
||||||
'li', 'ol', 'ul',
|
'li', 'ol', 'ul',
|
||||||
# tables
|
# tables
|
||||||
'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
|
'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
|
||||||
# other
|
# other
|
||||||
'a', 'br', 'img',
|
'a', 'br', 'img', 'figure', 'figcaption',
|
||||||
# special
|
# special
|
||||||
'rtl', '[]'
|
'rtl', '[]'
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue