Sha256: 2911d4541958e80eb9c32f8c217dfcec46c38ef7b478c571fcbc5f36c5b9b268

Contents?: true

Size: 225 Bytes

Versions: 18

Compression:

Stored size: 225 Bytes

Contents

require 'sanitize'

# This is exists so formatters can access it if it so pleases them.
module MongoidForums
  class Sanitizer
    def self.sanitize(text)
      Sanitize.clean(text, Sanitize::Config::BASIC)
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
mongoid-forums-1.0.7 lib/mongoid_forums/sanitizer.rb
mongoid-forums-1.0.6 lib/mongoid_forums/sanitizer.rb
ack-mongoid-forums-1.0.6.1 lib/mongoid_forums/sanitizer.rb
ack-mongoid-forums-1.0.6 lib/mongoid_forums/sanitizer.rb
ack-mongoid-forums-1.0.5 lib/mongoid_forums/sanitizer.rb
mongoid-forums-1.0.4 lib/mongoid_forums/sanitizer.rb
mongoid-forums-1.0.3 lib/mongoid_forums/sanitizer.rb
mongoid-forums-1.0.2 lib/mongoid_forums/sanitizer.rb
mongoid-forums-1.0.1 lib/mongoid_forums/sanitizer.rb
mongoid-forums-1.0.0 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.11 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.10 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.9 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.5 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.4 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.3 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.2 lib/mongoid_forums/sanitizer.rb
mongoid-forums-0.0.1 lib/mongoid_forums/sanitizer.rb