Skip to content

Commit

Permalink
Revert "Set jinja2 autoescape. Closes #424 (#429)"
Browse files Browse the repository at this point in the history
This reverts commit 681b6b3.
  • Loading branch information
jernst authored Dec 16, 2024
1 parent 681b6b3 commit 36d71cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/feditest/testruntranscriptserializer/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36d71cc

Please sign in to comment.