forked from orbit-oss/flask
Enable autoescape for render_template_string
This commit is contained in:
parent
e4f635f8d7
commit
99c99c4c16
7 changed files with 41 additions and 5 deletions
8
tests/templates/non_escaping_template.txt
Normal file
8
tests/templates/non_escaping_template.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ text }}
|
||||
{{ html }}
|
||||
{% autoescape false %}{{ text }}
|
||||
{{ html }}{% endautoescape %}
|
||||
{% autoescape true %}{{ text }}
|
||||
{{ html }}{% endautoescape %}
|
||||
{{ text }}
|
||||
{{ html }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue