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



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

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