Subclass of Nokogiri::HTML::DocumentFragment.
See Loofah::ScrubBehavior and Loofah::TextBehavior for additional methods.
# File lib/loofah/html/document_fragment.rb, line 30 def serialize_root at_xpath("./body") || self end
Overridden Nokogiri::HTML::DocumentFragment constructor. Applications should use Loofah.fragment to parse a fragment.
# File lib/loofah/html/document_fragment.rb, line 17 def parse tags self.new(Loofah::HTML::Document.new, tags) end