Allow rendering the description with html_safe

We made sure that it is properly sanitised before allowing this.
This commit is contained in:
kikito
2015-07-31 16:11:10 +02:00
parent c1028f794c
commit e277959274

View File

@@ -13,7 +13,9 @@
<%= @debate.author.name %> <span>&nbsp;&bullet;&nbsp;</span> <%= l @debate.created_at.to_date %> <span>&nbsp;&bullet;&nbsp;</span> <%= pluralize(@debate.comment_threads.count, t("debates.show.comment"), t("debates.show.comments")) %>
</div>
<p><%= @debate.description %></p>
<div class="debate-description">
<%= @debate.description.html_safe %>
</div>
<p><%= render 'shared/tags', debate: @debate %></p>
</div>