Class: String

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

Instance Method Summary collapse

Instance Method Details

#sanitizeObject



8
9
10
# File 'lib/feedjira/core_ext/string.rb', line 8

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

#sanitize!Object



4
5
6
# File 'lib/feedjira/core_ext/string.rb', line 4

def sanitize!
  replace(sanitize)
end