Files
openfoodnetwork/app/helpers/html_helper.rb

6 lines
127 B
Ruby

module HtmlHelper
def strip_html(html)
strip_tags(html).andand.gsub(/ /i, ' ').andand.gsub(/&/i, '&')
end
end