Fix HTML encoding in templating (#404)

This commit is contained in:
Nick Lowery
2022-05-20 23:28:31 -06:00
committed by GitHub
parent 7e07ca3df1
commit 322aa97a18
12 changed files with 33 additions and 47 deletions

View File

@ -110,7 +110,7 @@
{% endif %}
<!-- POST BODY -->
<div class="post_body">{{ post.body }}</div>
<div class="post_body">{{ post.body|safe }}</div>
<div class="post_score" title="{{ post.score.1 }}">{{ post.score.0 }}<span class="label"> Upvotes</span></div>
<div class="post_footer">
<ul id="post_links">
@ -144,7 +144,7 @@
{% endif %}
{% endif %}
{{ c.render().unwrap() }}
{{ c.render().unwrap()|safe }}
</div>
{%- endfor %}