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 bleach
import re import re
bleach.ALLOWED_TAGS += [ bleach.ALLOWED_TAGS += ['a', 'img', 'p', 'br', 'marquee', 'blink',
'a', 'img', 'p', 'br', 'marquee', 'blink', 'audio', 'video', 'table', 'audio', 'video', 'table', 'tbody', 'td', 'tr',
'tbody', 'td', 'tr', 'pre', 'div', 'span', 'pre',
] ]
bleach.ALLOWED_ATTRIBUTES.update({ bleach.ALLOWED_ATTRIBUTES.update({
'img': ['src', 'alt', 'title'], 'img': ['src', 'alt', 'title'],