Fixes in htmlform
This commit is contained in:
parent
849cb07b7b
commit
e0dd761956
7 changed files with 14 additions and 10 deletions
|
|
@ -270,7 +270,7 @@ class HTMLField(TextField):
|
|||
"""
|
||||
|
||||
super().__init__(name, required)
|
||||
self.trusted_tags=[]
|
||||
self.trusted_tags=['b', 'strong']
|
||||
|
||||
def check(self, value):
|
||||
"""Check method for html values
|
||||
|
|
@ -298,7 +298,7 @@ class HTMLField(TextField):
|
|||
|
||||
"""
|
||||
|
||||
value=bleach.clean('<p>"trial"</p><script></script>', tags=self.trusted_tags)
|
||||
value=bleach.clean(value, tags=self.trusted_tags)
|
||||
|
||||
if self.escape:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue