Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Search display uses simple display format.
  • Loading branch information
adambaker committed Apr 29, 2011
1 parent 5ce6483 commit 07913a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Expand Up @@ -11,7 +11,7 @@ def search_display(description, terms)
regex = Regexp.new(regex[0...-1], true)

description.gsub! regex, '<span class="search_term">\0</span>'
description.html_safe
display_format(description)
end

def include_flash_images
Expand All @@ -22,7 +22,7 @@ def include_flash_images
end

def allowed_tags
%w[em i strong b code samp tt s strike sup sub a img
%w[em i strong b code samp tt s strike sup sub a img span div
blockquote pre ul ol li table tr td p]
end

Expand Down

0 comments on commit 07913a1

Please sign in to comment.