Skip to content

Commit

Permalink
Mark rendered values in template as safe to prevent html escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 27, 2023
1 parent c7ad403 commit 207a31e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions info_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
<i>{{ alias|e }}</i>
</td>
<td class="identify-attr-value wrap">
{{ render_value(item[key]) }}
{{ render_value(item[key])|safe }}
</td>
</tr>
{% endif %}
{%- endfor %}
{%- else -%}
<tr>
<td class="identify-attr-value identify-attr-single-value wrap" colspan="2">
{{ render_value(item) }}
{{ render_value(item)|safe }}
</td>
</tr>
{%- endif %}
Expand All @@ -89,7 +89,7 @@
<i>{{ key|e }}</i>
</td>
<td class="identify-attr-value wrap">
{{ render_value(attr['value'][key]) }}
{{ render_value(attr['value'][key])|safe }}
</td>
</tr>
{%- endfor %}
Expand All @@ -105,7 +105,7 @@
<i>{{ attr['alias']|e }}</i>
</td>
<td class="identify-attr-value wrap">
{{ render_value(attr['value']) }}
{{ render_value(attr['value'])|safe }}
</td>
</tr>
{%- endif %}
Expand Down

0 comments on commit 207a31e

Please sign in to comment.