Sha256: c227cabfa7826d844766073370311b62b4579fc4f5664b399254b7fe0540f0d3
Contents?: true
Size: 271 Bytes
Versions: 2
Compression:
Stored size: 271 Bytes
Contents
class String def no_html self.dup.gsub(/<br\/?>/, ' ').gsub(/<\/?[^>]*>/, '').strip.gsub(' ', ' ').gsub('>', '>').gsub('<', '<') end end unless ''.respond_to?(:each) String.class_eval do def each &block self.lines &block end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.11.0 | lib/ab_admin/core_ext/string.rb |
ab_admin-0.10.0 | lib/ab_admin/core_ext/string.rb |