From 6255587753abd061fa3ab01495fcb385b332d2fe Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 26 May 2024 18:30:40 +0200 Subject: [PATCH] feat(privacy-policy): render HTML content safely 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. --- src/structables/templates/privacypolicy.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structables/templates/privacypolicy.html b/src/structables/templates/privacypolicy.html index 9cbcecf..b1d2bcf 100644 --- a/src/structables/templates/privacypolicy.html +++ b/src/structables/templates/privacypolicy.html @@ -5,6 +5,6 @@

Privacy Policy


-

{{ content }}

+

{{ content|safe }}

{% endblock %} \ No newline at end of file