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.
VERSION | = | '0.4.7' | The version of Loofah you are using | |
REQUIRED_NOKOGIRI_VERSION | = | '1.3.3' | The minimum required version of Nokogiri |
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(string_or_io).scrub!(method)
Shortcut for Loofah.xml_fragment(string_or_io).scrub!(method)
Shortcut for Loofah::XML::Document.parse This method accepts the same parameters as Nokogiri::XML::Document.parse