Skip to content

Commit

Permalink
enable jinja2 autoescape
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert-coef authored and fabclmnt committed Jul 8, 2024
1 parent be3ec22 commit 3578803
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"ydata_profiling", "report/presentation/flavours/html/templates"
)
jinja2_env = jinja2.Environment(
lstrip_blocks=True, trim_blocks=True, loader=package_loader
lstrip_blocks=True,
trim_blocks=True,
loader=package_loader,
autoescape=jinja2.select_autoescape(),
)
jinja2_env.filters["is_list"] = lambda x: isinstance(x, list)
jinja2_env.filters["fmt_badge"] = fmt_badge
Expand Down

0 comments on commit 3578803

Please sign in to comment.