From 09dc965ba35315ffbc234fe67dd0e6351658ebb2 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Fri, 6 May 2016 09:45:59 -0300 Subject: [PATCH] html safe fix for author link in blog's posts --- app/helpers/content_viewer_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/content_viewer_helper.rb b/app/helpers/content_viewer_helper.rb index e407acc..f4f6190 100644 --- a/app/helpers/content_viewer_helper.rb +++ b/app/helpers/content_viewer_helper.rb @@ -29,7 +29,7 @@ module ContentViewerHelper date_format = show_with_right_format_date article title << content_tag('span', date_format + - content_tag('span', _(", by %s") % (article.author ? link_to(article.author_name, article.author_url) : article.author_name), :class => 'author') + + content_tag('span', _(", by %s").html_safe % (article.author ? link_to(article.author_name, article.author_url) : article.author_name), :class => 'author') + content_tag('span', comments, :class => 'comments'), :class => 'publishing-info' ) -- libgit2 0.21.2