feat(privacy-policy): render HTML content safely
Some checks failed
Python Package CI/CD / Publish to PyPI (push) Failing after 36s
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:
parent
9c8c9b6c17
commit
6255587753
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
Loading…
Reference in a new issue