From b6238ad910d53a5e62e3248b66bbda910a11464e Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 26 Oct 2014 17:13:19 +0100 Subject: [PATCH] =?UTF-8?q?La=20description=20des=20=C3=A9v=C3=A9nements?= =?UTF-8?q?=20n'est=20plus=20rendue=20par=20markdown=20(qui=20=C3=A9tait?= =?UTF-8?q?=20plut=C3=B4t=20inutile=20=C3=A9tant=20donn=C3=A9=20tinymce)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/events/show.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index 9239e4af..11c51962 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -61,8 +61,7 @@ %h3=t '.description' .description - - markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true) - = description sanitize markdown.render(@event.description), + = description sanitize @event.description, tags: %w(p br table tr th td ul ol li a strong b em i img), attributes: %w(href src width height style)