From c86cb730f19b2a0546a220f2a9183659f011db82 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 1 Jan 2012 13:44:35 +0000 Subject: [PATCH] Rails3: helper: html_safe for SearchHelper highlight_tokens method Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8455 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/search_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 37d2137a6..aab402070 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -37,7 +37,7 @@ module SearchHelper result << content_tag('span', h(words), :class => "highlight token-#{t}") end end - result + result.html_safe end def type_label(t)