Skip to content

Commit b656c16

Browse files
committed
Enable auto-escaping only for html and xml templates
1 parent bcb5449 commit b656c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkdocs_ansible_collection/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, *args, **kwargs):
3636
)
3737
self.jinja_env = Environment(
3838
loader=FileSystemLoader(package_files("mkdocs_ansible_collection") / "templates"),
39-
autoescape=select_autoescape(default=True),
39+
autoescape=select_autoescape(["html", "htm", "xml"]),
4040
trim_blocks=True,
4141
lstrip_blocks=True,
4242
)

0 commit comments

Comments
 (0)