From 36d71cc213d83aafd3d768ce4352573098c852c9 Mon Sep 17 00:00:00 2001 From: Johannes Ernst Date: Mon, 16 Dec 2024 15:53:13 -0800 Subject: [PATCH] Revert "Set jinja2 autoescape. Closes #424 (#429)" This reverts commit 681b6b3b2c0390ea465022af1bf5f3743c0be51e. --- src/feditest/testruntranscriptserializer/html.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/feditest/testruntranscriptserializer/html.py b/src/feditest/testruntranscriptserializer/html.py index 44ff20b..16a2e06 100644 --- a/src/feditest/testruntranscriptserializer/html.py +++ b/src/feditest/testruntranscriptserializer/html.py @@ -61,8 +61,7 @@ def __init__(self, template_path: str): self.template_path = [ os.path.join(os.path.dirname(__file__), "templates/testplantranscript_default") ] self.jinja2_env = jinja2.Environment( - loader=jinja2.FileSystemLoader(self.template_path), - autoescape=jinja2.select_autoescape() + loader=jinja2.FileSystemLoader(self.template_path) ) self.jinja2_env.filters["regex_sub"] = lambda s, pattern, replacement: re.sub( pattern, replacement, s