add div/span to bleach's allowed tags
This commit is contained in:
parent
398dd39929
commit
b57e0cca26
1 changed files with 3 additions and 3 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue