Secure jinja scaping characters

This commit is contained in:
Rivas 2025-04-26 14:34:46 -07:00
commit 59ed0987b2
3 changed files with 5 additions and 0 deletions

3
RELEASE.md Normal file
View file

@ -0,0 +1,3 @@
Release type: minor
Set `autoescape=True` for jinja2

View file

@ -86,6 +86,7 @@ class Generator:
), # explicit ones
]
),
autoescape=True,
**self.settings["JINJA_ENVIRONMENT"],
)

View file

@ -45,6 +45,7 @@ _jinja_env = Environment(
loader=FileSystemLoader(_TEMPLATES_DIR),
trim_blocks=True,
keep_trailing_newline=True,
autoescape=True,
)