From 207a31e68ece9d4a15ea8ca096747e3055ab8129 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 27 Jul 2023 12:22:08 +0200 Subject: [PATCH] Mark rendered values in template as safe to prevent html escaping --- info_templates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/info_templates.py b/info_templates.py index c55748f..6994b5c 100644 --- a/info_templates.py +++ b/info_templates.py @@ -55,7 +55,7 @@ {{ alias|e }} - {{ render_value(item[key]) }} + {{ render_value(item[key])|safe }} {% endif %} @@ -63,7 +63,7 @@ {%- else -%} - {{ render_value(item) }} + {{ render_value(item)|safe }} {%- endif %} @@ -89,7 +89,7 @@ {{ key|e }} - {{ render_value(attr['value'][key]) }} + {{ render_value(attr['value'][key])|safe }} {%- endfor %} @@ -105,7 +105,7 @@ {{ attr['alias']|e }} - {{ render_value(attr['value']) }} + {{ render_value(attr['value'])|safe }} {%- endif %}