Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 8cc346a

Browse files
committed
enable autoescape in jinja
1 parent bc25993 commit 8cc346a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

netnir/plugins/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def template_file(
2020
loader=FileSystemLoader(template_path),
2121
undefined=StrictUndefined,
2222
trim_blocks=True,
23+
autoescape=True,
2324
)
2425
env.filters.update(jinja_filters)
2526
template = env.get_template(template_file)

0 commit comments

Comments
 (0)