Commit ff861de7 authored by Sergey Shubin's avatar Sergey Shubin

escape_html function was removed as non-existent in the too old and

too new versions of WTForms
parent dddfca99
from wtforms.widgets.core import HTMLString, escape_html
from wtforms.widgets.core import HTMLString, escape
class CheckboxListInput:
......@@ -22,7 +22,7 @@ class CheckboxListInput:
args = {
'id': val,
'name': field.name,
'label': escape_html(label, quote=False),
'label': escape(label),
'selected': ' checked' if selected else '',
}
items.append(self.template % args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment