class Loofah::HTML::DocumentFragment


See Loofah::ScrubBehavior and Loofah::TextBehavior for additional methods.
Subclass of Nokogiri::HTML::DocumentFragment.
:nodoc:

def parse tags


parse a fragment.
constructor. Applications should use Loofah.fragment to
Overridden Nokogiri::HTML::DocumentFragment
def parse tags
  self.new(Loofah::HTML::Document.new, tags)
end

def serialize_root

def serialize_root
  at_xpath("./body") || self
end

def to_s


Returns the HTML markup contained by the fragment
def to_s
  serialize_root.children.to_s
end