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.
This commit is contained in:
Juanjo Bazán
2016-01-25 21:52:59 +01:00
parent 7b09a73861
commit 822d28a4a1

View File

@@ -64,7 +64,7 @@
<div class="comment-user
<%= user_level_class comment %>
<%= comment_author_class comment, comment.commentable.author_id %>">
<%= simple_format text_with_links comment.body %>
<%= simple_format text_with_links(comment.body), {}, sanitize: false %>
</div>
<div id="<%= dom_id(comment) %>_reply" class="reply">