Allow rendering the description with html_safe
We made sure that it is properly sanitised before allowing this.
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
|
||||
<%= @debate.author.name %> <span> • </span> <%= l @debate.created_at.to_date %> <span> • </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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user