##// END OF EJS Templates
Rails3: helper: html_safe for SearchHelper render_results_by_type method...
Toshi MARUYAMA -
r8336:979a4ecb2295
parent child
Show More
@@ -63,6 +63,8 module SearchHelper
63 links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only],
63 links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only],
64 :all_words => params[:all_words], :scope => params[:scope], t => 1)
64 :all_words => params[:all_words], :scope => params[:scope], t => 1)
65 end
65 end
66 ('<ul>' + links.map {|link| content_tag('li', link)}.join(' ') + '</ul>') unless links.empty?
66 ('<ul>'.html_safe +
67 links.map {|link| content_tag('li', link)}.join(' ').html_safe +
68 '</ul>'.html_safe) unless links.empty?
67 end
69 end
68 end
70 end
General Comments 0
You need to be logged in to leave comments. Login now