added span and strong to allowed_tags

This commit is contained in:
mdipierro
2013-02-05 08:49:58 -06:00
parent cbb9a1fdbe
commit 0460ffdb28
3 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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'],

View File

@@ -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'],