Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/feedjira/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#sanitizeObject



6
7
8
# File 'lib/feedjira/core_ext/string.rb', line 6

def sanitize
  Loofah.scrub_fragment(self, :prune).to_s
end

#sanitize!Object



2
3
4
# File 'lib/feedjira/core_ext/string.rb', line 2

def sanitize!
  replace(sanitize)
end