added span and strong to allowed_tags
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.4.1-alpha.2+timestamp.2013.02.05.08.45.51
|
||||
Version 2.4.1-alpha.2+timestamp.2013.02.05.08.49.14
|
||||
|
||||
@@ -553,7 +553,7 @@ class XML(XmlComponent):
|
||||
'img/',
|
||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
|
||||
'table', 'tr', 'td', 'div',
|
||||
'strong',
|
||||
'strong','span',
|
||||
],
|
||||
allowed_attributes={
|
||||
'a': ['href', 'title', 'target'],
|
||||
|
||||
@@ -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