Skip to content

Enable automatic escaping of all stuff rendered through ".html.jinja" templates #318

Answered by davidism
DerMax93 asked this question in Q&A
Discussion options

You must be logged in to vote

You can override Quart.select_jinja_autoescape(filename) to return True when a given filename should have autoescape enabled. The default looks for the extensions html, htm, xml, xhtml, and svg.

I'm also pretty sure there's a few extensions for VS Code that add Jinja template support.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DerMax93
Comment options

Answer selected by DerMax93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants