Sha256: 388fa7b6f913eea71344e0a780d07e2a657ae34cef706676b0f2538779213981

Contents?: true

Size: 133 Bytes

Versions: 17

Compression:

Stored size: 133 Bytes

Contents

class String
  def sanitize!
    self.replace(sanitize)
  end

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

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
feedjira-2.0.0 lib/feedjira/core_ext/string.rb
feedjira-1.6.0 lib/feedjira/core_ext/string.rb
feedjira-1.5.0 lib/feedjira/core_ext/string.rb
feedjira-1.4.0 lib/feedjira/core_ext/string.rb
feedjira-1.3.1 lib/feedjira/core_ext/string.rb
feedjira-1.3.0 lib/feedjira/core_ext/string.rb
feedjira-1.2.0 lib/feedjira/core_ext/string.rb
feedjira-1.1.0 lib/feedjira/core_ext/string.rb
feedjira-1.0.0 lib/feedjira/core_ext/string.rb
feedjira-0.9.0 lib/feedjira/core_ext/string.rb
feedzirra-0.7.1 lib/feedzirra/core_ext/string.rb
feedzirra-0.7.0 lib/feedzirra/core_ext/string.rb
feedzirra-0.6.0 lib/feedzirra/core_ext/string.rb
feedzirra-0.5.0 lib/feedzirra/core_ext/string.rb
feedzirra-0.4.0 lib/feedzirra/core_ext/string.rb
feedzirra-0.3.0 lib/feedzirra/core_ext/string.rb
feedzirra-0.2.2 lib/feedzirra/core_ext/string.rb