forked from MarseyWorld/MarseyWorld
remove annoying \n
parent
fa7963956e
commit
da4904c8a1
|
@ -11,7 +11,6 @@ allowed_tags_runstime = ('div', 'input', 'label', 'score', 'button')
|
||||||
allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform')
|
allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform')
|
||||||
|
|
||||||
def allowed_attributes(tag, name, value):
|
def allowed_attributes(tag, name, value):
|
||||||
|
|
||||||
if name == 'style':
|
if name == 'style':
|
||||||
value = value.lower()
|
value = value.lower()
|
||||||
if 'transform' in value and 'scale' in value and ('rotate' in value or 'skew' in value):
|
if 'transform' in value and 'scale' in value and ('rotate' in value or 'skew' in value):
|
||||||
|
|
Loading…
Reference in New Issue