forked from orbit-oss/flask
Add .svg to select_jinja_autoescape (#4840)
As SVG files are a type of XML file and are similar in nearly all aspects to XML, .svg should also be autoescaped.
This commit is contained in:
parent
3dc6db9d0c
commit
cc66213e57
3 changed files with 8 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ Jinja Setup
|
|||
Unless customized, Jinja2 is configured by Flask as follows:
|
||||
|
||||
- autoescaping is enabled for all templates ending in ``.html``,
|
||||
``.htm``, ``.xml`` as well as ``.xhtml`` when using
|
||||
``.htm``, ``.xml``, ``.xhtml``, as well as ``.svg`` when using
|
||||
:func:`~flask.templating.render_template`.
|
||||
- autoescaping is enabled for all strings when using
|
||||
:func:`~flask.templating.render_template_string`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue