feat(privacy-policy): render HTML content safely
Some checks failed
Python Package CI/CD / Publish to PyPI (push) Failing after 36s

Updated the privacy policy template to render HTML content safely by applying the `safe` filter to the content variable. This change ensures that HTML content stored in the `content` variable is rendered correctly in the browser, without escaping HTML tags, enhancing the page's flexibility in displaying rich content. This approach assumes the content is pre-sanitized and safe to render, mitigating potential cross-site scripting (XSS) vulnerabilities.
This commit is contained in:
Kumi 2024-05-26 18:30:40 +02:00
parent 9c8c9b6c17
commit 6255587753
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -5,6 +5,6 @@
<br>
<h1 style="font-size:2em;line-height:0em;">Privacy Policy</h1>
<br>
<p>{{ content }}</p>
<p>{{ content|safe }}</p>
</center>
{% endblock %}