From 822d28a4a1af562dcd35681bcf8589124894bfa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Mon, 25 Jan 2016 21:52:59 +0100 Subject: [PATCH] sets sanitize to false for already sanitized text The new version of the rails-html-sanitizer (used by simple_format) strips by default all attributes. We want rel='nofollow' and target='_blank' here and the text has just been sanitized in text_with_links. --- app/views/comments/_comment.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index e8c49636b..b0c60941a 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -64,7 +64,7 @@
- <%= simple_format text_with_links comment.body %> + <%= simple_format text_with_links(comment.body), {}, sanitize: false %>