fix: correct autoescaping of html entities

This commit is contained in:
Iain Learmonth 2026-05-19 14:12:32 +01:00
parent 1a5e3a2aba
commit a939032ebc
2 changed files with 3 additions and 3 deletions

View file

@ -286,7 +286,7 @@ class SnapshotCamera:
package_path="templates",
),
extensions=["jinja2.ext.i18n"],
autoescape=select_autoescape(),
autoescape=True,
trim_blocks=True,
lstrip_blocks=True,
)

View file

@ -24,7 +24,7 @@
<link rel="icon" href="{{ site_favicon }}" />
{% endif %}
<style>
{{ article_css() }}
{{ article_css() | safe }}
</style>
<script type="text/javascript">
@ -124,7 +124,7 @@
</figure>
{% endif %}
<div class="snap-content">
{{ article_body }}
{{ article_body | safe }}
{% if article_mirror_url %}
<p>
<a href="{{ article_mirror_url }}" class="snap-footer-link snap-link--mirror">