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
This commit is contained in:
Toshi MARUYAMA 2012-01-01 13:44:35 +00:00
parent b67353fdb5
commit c86cb730f1
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module SearchHelper
result << content_tag('span', h(words), :class => "highlight token-#{t}") result << content_tag('span', h(words), :class => "highlight token-#{t}")
end end
end end
result result.html_safe
end end
def type_label(t) def type_label(t)