From e2779592744b193bedf3e85d385871bc04d0c5d2 Mon Sep 17 00:00:00 2001 From: kikito Date: Fri, 31 Jul 2015 16:11:10 +0200 Subject: [PATCH] Allow rendering the description with html_safe We made sure that it is properly sanitised before allowing this. --- app/views/debates/show.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index 3ae0cace4..c9ce7abf1 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -13,7 +13,9 @@ <%= @debate.author.name %>  •  <%= l @debate.created_at.to_date %>  •  <%= pluralize(@debate.comment_threads.count, t("debates.show.comment"), t("debates.show.comments")) %> -

<%= @debate.description %>

+
+ <%= @debate.description.html_safe %> +

<%= render 'shared/tags', debate: @debate %>