summaryrefslogtreecommitdiffstats
path: root/app/helpers/search_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-01 13:44:35 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-01 13:44:35 +0000
commitc86cb730f19b2a0546a220f2a9183659f011db82 (patch)
treee93f7c2432a1e068e0f11001cd8f76904a44413f /app/helpers/search_helper.rb
parentb67353fdb59a42074380e811c44b225a19994feb (diff)
downloadredmine-c86cb730f19b2a0546a220f2a9183659f011db82.tar.gz
redmine-c86cb730f19b2a0546a220f2a9183659f011db82.zip
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
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb2
1 files changed, 1 insertions, 1 deletions
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)