Add .svg to select_jinja_autoescape

This commit is contained in:
Jonah Lawrence 2022-10-07 15:45:18 +00:00 committed by GitHub
parent 3dc6db9d0c
commit f87623f8d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View file

@ -436,6 +436,11 @@ Here is a basic introduction to how the :class:`~markupsafe.Markup` class works:
>>> Markup('<em>Marked up</em> &raquo; HTML').striptags()
'Marked up » HTML'
.. versionchanged:: 2.2
In addition to the extensions below, templates with the ``.svg`` extension
are also autoescaped.
.. versionchanged:: 0.5
Autoescaping is no longer enabled for all templates. The following