added span and strong to allowed_tags
This commit is contained in:
@@ -212,6 +212,7 @@ def sanitize(text, permitted_tags=[
|
||||
'img/',
|
||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
|
||||
'table', 'tr', 'td', 'div',
|
||||
'strong', 'span',
|
||||
],
|
||||
allowed_attributes={
|
||||
'a': ['href', 'title'],
|
||||
|
||||
Reference in New Issue
Block a user