Module Loofah
In: lib/loofah.rb
lib/loofah/scrubbers.rb
lib/loofah/scrubber.rb
lib/loofah/elements.rb
lib/loofah/html/document.rb
lib/loofah/html/document_fragment.rb
lib/loofah/instance_methods.rb
lib/loofah/metahelpers.rb
lib/loofah/helpers.rb
lib/loofah/xml/document.rb
lib/loofah/xml/document_fragment.rb
lib/loofah/html5/whitelist.rb
lib/loofah/html5/scrub.rb

Strings and IO Objects as Input

Loofah.document and Loofah.fragment accept any IO object in addition to accepting a string. That IO object could be a file, or a socket, or a StringIO, or anything that responds to read and close. Which makes it particularly easy to sanitize mass quantities of docs.

Methods

Classes and Modules

Module Loofah::Elements
Module Loofah::Helpers
Module Loofah::ScrubBehavior
Module Loofah::Scrubbers
Module Loofah::TextBehavior
Class Loofah::Scrubber
Class Loofah::ScrubberNotFound

Constants

VERSION = '1.2.1'   The version of Loofah you are using

Public Class methods

Shortcut for Loofah::HTML::Document.parse This method accepts the same parameters as Nokogiri::HTML::Document.parse

Shortcut for Loofah::HTML::DocumentFragment.parse This method accepts the same parameters as Nokogiri::HTML::DocumentFragment.parse

Shortcut for Loofah::XML::Document.parse This method accepts the same parameters as Nokogiri::XML::Document.parse

Shortcut for Loofah::XML::DocumentFragment.parse This method accepts the same parameters as Nokogiri::XML::DocumentFragment.parse

[Validate]