adding 'strong' to 'permitted_tags', and 'a.target' to allowed_attributes, thanks Vladyslav
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-06-30 11:54:31) dev
|
Version 2.00.0 (2012-06-30 12:08:50) dev
|
||||||
|
|||||||
+2
-1
@@ -505,9 +505,10 @@ class XML(XmlComponent):
|
|||||||
'img/',
|
'img/',
|
||||||
'h1','h2','h3','h4','h5','h6',
|
'h1','h2','h3','h4','h5','h6',
|
||||||
'table','tr','td','div',
|
'table','tr','td','div',
|
||||||
|
'strong',
|
||||||
],
|
],
|
||||||
allowed_attributes = {
|
allowed_attributes = {
|
||||||
'a': ['href', 'title'],
|
'a': ['href', 'title', 'target'],
|
||||||
'img': ['src', 'alt'],
|
'img': ['src', 'alt'],
|
||||||
'blockquote': ['type'],
|
'blockquote': ['type'],
|
||||||
'td': ['colspan'],
|
'td': ['colspan'],
|
||||||
|
|||||||
Reference in New Issue
Block a user