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:
parent
b67353fdb5
commit
c86cb730f1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue