Class: Loofah::HTML::Document

Inherits:
Nokogiri::HTML::Document
  • Object
show all
Includes:
DocumentDecorator, ScrubBehavior::Node, TextBehavior
Defined in:
lib/loofah/html/document.rb

Overview

Subclass of Nokogiri::HTML::Document.

See Loofah::ScrubBehavior and Loofah::TextBehavior for additional methods.

Instance Method Summary collapse

Methods included from TextBehavior

#text, #to_text

Methods included from DocumentDecorator

#initialize

Methods included from ScrubBehavior::Node

#scrub!

Instance Method Details

#serialize_rootObject


13
14
15
# File 'lib/loofah/html/document.rb', line 13

def serialize_root
  at_xpath("/html/body")
end