From 710ac635482622021d46925a9c25207effa05386 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 13 Jun 2022 20:47:21 +0000 Subject: Add |safe to ensure HTML entites are correctly escaped for trait descriptions --- wqflask/wqflask/templates/show_trait.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index 7074e21e..f366d33f 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -18,7 +18,7 @@

Trait Data and Analysis for {{ this_trait.display_name }}

{% if this_trait.dataset.type != 'Publish' %} -

{{ this_trait.description_fmt[0]|upper }}{{ this_trait.description_fmt[1:] }}

+

{{ this_trait.description_fmt[0]|upper }}{{ this_trait.description_fmt[1:]|safe }}

{% endif %}
-- cgit v1.2.3