Allow definition lists in sanitized HTML
This commit is contained in:
parent
5230d59d44
commit
7c9887410c
1 changed files with 4 additions and 0 deletions
|
@ -259,6 +259,10 @@ def sanitize_html(html, tags=None, global_attributes=[]):
|
||||||
{'name': 'li'},
|
{'name': 'li'},
|
||||||
{'name': 'ol'},
|
{'name': 'ol'},
|
||||||
{'name': 'ul'},
|
{'name': 'ul'},
|
||||||
|
# definition lists
|
||||||
|
{'name': 'dl'},
|
||||||
|
{'name': 'dt'},
|
||||||
|
{'name': 'dd'},
|
||||||
# tables
|
# tables
|
||||||
{'name': 'table'},
|
{'name': 'table'},
|
||||||
{'name': 'tbody'},
|
{'name': 'tbody'},
|
||||||
|
|
Loading…
Reference in a new issue