Permalink
Browse files

Search display uses simple display format.

  • Loading branch information...
1 parent 5ce6483 commit 07913a1bd9707da5c8f91fd3ac99d16ea7927c7d @adambaker committed Apr 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/helpers/application_helper.rb
@@ -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
@@ -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

0 comments on commit 07913a1

Please sign in to comment.