/[\"\']?/
/[^\"\'> ]+/
/[^\"\'>]+/
216 217 218 219 220 221 222 223 224
# File 'lib/langhelp/langhelp-base.rb', line 216 def html2txt!(s) s.gsub!(/<img .*?alt=#{Q}(#{ALT})#{Q}.*?>/imo, '\1') s.gsub!(/<[^>]+>/,'') s.gsub!(/ /, ' ') s.replace CGI.unescapeHTML(s) s.gsub!(/\r?\n/,' ') s.gsub!(/\s+/, ' ') s end