# Table of Contents - loofah-2.2.2 Documentation

## Pages

- CHANGELOG
  - Changelog
  - 2.2.2 / 2018-03-22
  - 2.2.1 / 2018-03-19
  - 2.2.0 / 2018-02-11
  - 2.1.1 / 2017-09-24
  - 2.1.0 / 2017-09-24
  - 2.0.3 / 2015-08-17
  - 2.0.2 / 2015-05-05
  - 2.0.1 / 2014-08-21
  - 2.0.0 / 2014-05-09
  - 1.2.1 (2012-04-14)
  - 1.2.0 (2011-08-08)
  - 1.1.0 (2011-08-08)
  - 1.0.0 (2010-10-26)
  - 0.4.7 (2010-03-09)
  - 0.4.4, 0.4.5, 0.4.6 (2010-02-01)
  - 0.4.3 (2010-01-29)
  - 0.4.2 (2010-01-22)
  - 0.4.1 (2009-11-23)
  - 0.4.0 (2009-11-21)
  - 0.3.1 (2009-10-12)
  - 0.3.0 (2009-10-06)
  - 0.2.2 (2009-09-30)
  - 0.2.1 (2009-09-19)
  - 0.2.0 (2009-09-11)
  - 0.1.2 (2009-04-30)
  - 0.1.0 (2009-02-10)
- MIT-LICENSE
- Manifest
- README
  - Loofah
  - Status
  - Description
  - Features
  - Compare and Contrast
  - The Basics
  - Side Note: Fragments vs Documents
  - Loofah::HTML::Document and Loofah::HTML::DocumentFragment
  - Loofah::XML::Document and Loofah::XML::DocumentFragment
  - Nodes and NodeSets
  - Loofah::Scrubber
  - Chaining Scrubbers
  - Shorthand
  - View Helpers
  - Requirements
  - Installation
  - Support
  - Security
  - “Secure by Default”
  - Related Links
  - Authors
  - Thank You
  - Historical Note
  - License
- SECURITY
  - Security and Vulnerability Reporting

## Classes and Modules

- Loofah
  - Strings and IO Objects as Input
- Loofah::DocumentDecorator
- Loofah::Elements
- Loofah::HTML
- Loofah::HTML5
- Loofah::HTML5::Scrub
- Loofah::HTML5::WhiteList
- Loofah::HTML::Document
- Loofah::HTML::DocumentFragment
- Loofah::Helpers
- Loofah::Helpers::ActionView
- Loofah::Helpers::ActionView::ClassMethods
- Loofah::Helpers::ActionView::FullSanitizer
- Loofah::Helpers::ActionView::WhiteListSanitizer
- Loofah::LibxmlWorkarounds
- Loofah::MetaHelpers
- Loofah::ScrubBehavior
- Loofah::ScrubBehavior::Node
- Loofah::ScrubBehavior::NodeSet
- Loofah::Scrubber
- Loofah::ScrubberNotFound
- Loofah::Scrubbers
  - Loofah::Scrubbers::Strip / scrub!(:strip)
  - Loofah::Scrubbers::Prune / scrub!(:prune)
  - Loofah::Scrubbers::Escape / scrub!(:escape)
  - Loofah::Scrubbers::Whitewash / scrub!(:whitewash)
  - Loofah::Scrubbers::NoFollow / scrub!(:nofollow)
  - Loofah::Scrubbers::NoOpener / scrub!(:noopener)
  - Loofah::Scrubbers::Unprintable / scrub!(:unprintable)
- Loofah::Scrubbers::Escape
  - scrub!(:escape)
- Loofah::Scrubbers::NewlineBlockElements
- Loofah::Scrubbers::NoFollow
  - scrub!(:nofollow)
- Loofah::Scrubbers::NoOpener
  - scrub!(:noopener)
- Loofah::Scrubbers::Prune
  - scrub!(:prune)
- Loofah::Scrubbers::Strip
  - scrub!(:strip)
- Loofah::Scrubbers::Unprintable
  - scrub!(:unprintable)
- Loofah::Scrubbers::Whitewash
  - scrub!(:whitewash)
- Loofah::TextBehavior
- Loofah::XML
- Loofah::XML::Document
- Loofah::XML::DocumentFragment

## Methods

- ::allowed_element? — Loofah::HTML5::Scrub
- ::document — Loofah
- ::force_correct_attribute_escaping! — Loofah::HTML5::Scrub
- ::fragment — Loofah
- ::new — Loofah::Scrubbers::Strip
- ::new — Loofah::Scrubbers::NoFollow
- ::new — Loofah::Scrubbers::Whitewash
- ::new — Loofah::Scrubbers::Escape
- ::new — Loofah::Scrubbers::Prune
- ::new — Loofah::Scrubbers::Unprintable
- ::new — Loofah::Scrubbers::NoOpener
- ::new — Loofah::Scrubber
- ::parse — Loofah::HTML::DocumentFragment
- ::parse — Loofah::XML::DocumentFragment
- ::remove_extraneous_whitespace — Loofah
- ::remove_extraneous_whitespace — Loofah::Helpers
- ::sanitize — Loofah::Helpers
- ::sanitize_css — Loofah::Helpers
- ::scrub_attributes — Loofah::HTML5::Scrub
- ::scrub_css — Loofah::HTML5::Scrub
- ::scrub_css_attribute — Loofah::HTML5::Scrub
- ::scrub_document — Loofah
- ::scrub_fragment — Loofah
- ::scrub_xml_document — Loofah
- ::scrub_xml_fragment — Loofah
- ::scrubber_symbols — Loofah::Scrubbers
- ::strip_tags — Loofah::Helpers
- ::xml_document — Loofah
- ::xml_fragment — Loofah
- #append_attribute — Loofah::Scrubber
- #html5lib_sanitize — Loofah::Scrubber
- #inner_text — Loofah::TextBehavior
- #sanitize — Loofah::Helpers::ActionView::FullSanitizer
- #sanitize — Loofah::Helpers::ActionView::WhiteListSanitizer
- #sanitize_css — Loofah::Helpers::ActionView::WhiteListSanitizer
- #scrub — Loofah::Scrubbers::NoOpener
- #scrub — Loofah::Scrubbers::NoFollow
- #scrub — Loofah::Scrubbers::Whitewash
- #scrub — Loofah::Scrubbers::Escape
- #scrub — Loofah::Scrubbers::Prune
- #scrub — Loofah::Scrubbers::Strip
- #scrub — Loofah::Scrubber
- #scrub — Loofah::Scrubbers::Unprintable
- #serialize — Loofah::HTML::DocumentFragment
- #serialize_root — Loofah::HTML::DocumentFragment
- #serialize_root — Loofah::HTML::Document
- #text — Loofah::TextBehavior
- #to_s — Loofah::HTML::DocumentFragment
- #to_str — Loofah::TextBehavior
- #to_text — Loofah::TextBehavior
- #traverse — Loofah::Scrubber
- #traverse_conditionally_bottom_up — Loofah::Scrubber
- #traverse_conditionally_top_down — Loofah::Scrubber