Browse Source

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
tags/1.4.0
Toshi MARUYAMA 12 years ago
parent
commit
979a4ecb22
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      app/helpers/search_helper.rb

+ 3
- 1
app/helpers/search_helper.rb View File

@@ -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…
Cancel
Save