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", package_path="templates",
), ),
extensions=["jinja2.ext.i18n"], extensions=["jinja2.ext.i18n"],
autoescape=select_autoescape(), autoescape=True,
trim_blocks=True, trim_blocks=True,
lstrip_blocks=True, lstrip_blocks=True,
) )

View file

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