Method: String#no_html

Defined in:
lib/sunrise/core_ext/string.rb

#no_htmlObject



8
9
10
11
12
13
14
# File 'lib/sunrise/core_ext/string.rb', line 8

def no_html
	str = self.dup
	str.gsub!(/<\/?[^>]*>/, '')
	str.strip!
	str.gsub!('&nbsp;', '')
	str
end