Method: Celerity::Util.normalize_text
- Defined in:
- lib/celerity/util.rb
.normalize_text(string) ⇒ Object
83 84 85 86 87 |
# File 'lib/celerity/util.rb', line 83 def normalize_text(string) string.gsub("\302\240", ' '). # non-breaking space 00A0 gsub(/\n|\t/, ''). # get rid of newlines/tabs strip end |