From a939032ebc35de6a5b4256e8cbec39bee601df29 Mon Sep 17 00:00:00 2001 From: irl Date: Tue, 19 May 2026 14:12:32 +0100 Subject: [PATCH] fix: correct autoescaping of html entities --- src/snapshots/client.py | 2 +- src/snapshots/templates/article-template.html.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/snapshots/client.py b/src/snapshots/client.py index 31202f7..e9c8e19 100644 --- a/src/snapshots/client.py +++ b/src/snapshots/client.py @@ -286,7 +286,7 @@ class SnapshotCamera: package_path="templates", ), extensions=["jinja2.ext.i18n"], - autoescape=select_autoescape(), + autoescape=True, trim_blocks=True, lstrip_blocks=True, ) diff --git a/src/snapshots/templates/article-template.html.j2 b/src/snapshots/templates/article-template.html.j2 index 0da5665..5f102c5 100644 --- a/src/snapshots/templates/article-template.html.j2 +++ b/src/snapshots/templates/article-template.html.j2 @@ -24,7 +24,7 @@ {% endif %}