Class: String
Instance Method Summary collapse
Instance Method Details
#no_html ⇒ Object
2 3 4 |
# File 'lib/ab_admin/core_ext/string.rb', line 2 def no_html self.dup.gsub(/<br\/?>/, ' ').gsub(/<\/?[^>]*>/, '').strip.gsub(' ', ' ').gsub('>', '>').gsub('<', '<') end |