Class: MongoidForums::Sanitizer

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid_forums/sanitizer.rb

Class Method Summary collapse

Class Method Details

.sanitize(text) ⇒ Object


6
7
8
# File 'lib/mongoid_forums/sanitizer.rb', line 6

def self.sanitize(text)
  Sanitize.clean(text, Sanitize::Config::BASIC)
end