add div/span to bleach's allowed tags

This commit is contained in:
Kyle Mahan 2015-04-18 15:36:10 -07:00
parent 398dd39929
commit b57e0cca26

View file

@ -1,9 +1,9 @@
import bleach
import re
bleach.ALLOWED_TAGS += [
'a', 'img', 'p', 'br', 'marquee', 'blink', 'audio', 'video', 'table',
'tbody', 'td', 'tr', 'pre',
bleach.ALLOWED_TAGS += ['a', 'img', 'p', 'br', 'marquee', 'blink',
'audio', 'video', 'table', 'tbody', 'td', 'tr',
'div', 'span', 'pre',
]
bleach.ALLOWED_ATTRIBUTES.update({
'img': ['src', 'alt', 'title'],