Skip to content

Commit 3578803

Browse files
graingert-coeffabclmnt
authored andcommitted
enable jinja2 autoescape
Fixes #1599
1 parent be3ec22 commit 3578803

File tree

1 file changed

+4
-1
lines changed
  • src/ydata_profiling/report/presentation/flavours/html

1 file changed

+4
-1
lines changed

src/ydata_profiling/report/presentation/flavours/html/templates.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"ydata_profiling", "report/presentation/flavours/html/templates"
1313
)
1414
jinja2_env = jinja2.Environment(
15-
lstrip_blocks=True, trim_blocks=True, loader=package_loader
15+
lstrip_blocks=True,
16+
trim_blocks=True,
17+
loader=package_loader,
18+
autoescape=jinja2.select_autoescape(),
1619
)
1720
jinja2_env.filters["is_list"] = lambda x: isinstance(x, list)
1821
jinja2_env.filters["fmt_badge"] = fmt_badge

0 commit comments

Comments
 (0)