Enable autoescape for render_template_string
This commit is contained in:
parent
e4f635f8d7
commit
99c99c4c16
7 changed files with 41 additions and 5 deletions
|
|
@ -127,7 +127,7 @@ def render_template(template_name_or_list, **context):
|
|||
|
||||
def render_template_string(source, **context):
|
||||
"""Renders a template from the given template source string
|
||||
with the given context.
|
||||
with the given context. Template variables will be autoescaped.
|
||||
|
||||
:param source: the source code of the template to be
|
||||
rendered
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue