diff --git a/app/helpers/text_with_links_helper.rb b/app/helpers/text_with_links_helper.rb index ca07daf39..fe726c51e 100644 --- a/app/helpers/text_with_links_helper.rb +++ b/app/helpers/text_with_links_helper.rb @@ -2,7 +2,7 @@ module TextWithLinksHelper def text_with_links(text) return unless text - sanitized = sanitize text, tags: [], attributes: [] + sanitized = sanitize(text, tags: [], attributes: []) Rinku.auto_link(sanitized, :all, 'target="_blank" rel="nofollow"').html_safe end diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index ac61483fc..e2ce326aa 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -63,17 +63,17 @@ <% if comment.as_administrator? %> -
<%= text_with_links comment.body %>
+<%= text_with_links comment.body %>
+<%= text_with_links comment.body %>
+<%= text_with_links comment.body %>
+