Allow definition lists in sanitized HTML

This commit is contained in:
Will Thompson 2015-09-14 22:47:21 +02:00 committed by j
parent 5230d59d44
commit 7c9887410c

View file

@ -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'},