Rails3: helper: html_safe for SearchHelper render_results_by_type method
Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8456 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c86cb730f1
commit
979a4ecb22
|
@ -63,6 +63,8 @@ module SearchHelper
|
|||
links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only],
|
||||
:all_words => params[:all_words], :scope => params[:scope], t => 1)
|
||||
end
|
||||
('<ul>' + links.map {|link| content_tag('li', link)}.join(' ') + '</ul>') unless links.empty?
|
||||
('<ul>'.html_safe +
|
||||
links.map {|link| content_tag('li', link)}.join(' ').html_safe +
|
||||
'</ul>'.html_safe) unless links.empty?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue