Class: Loofah::XML::DocumentFragment
- Inherits:
-
Nokogiri::XML::DocumentFragment
- Object
- Nokogiri::XML::DocumentFragment
- Loofah::XML::DocumentFragment
- Defined in:
- lib/loofah/xml/document_fragment.rb
Overview
Subclass of Nokogiri::XML::DocumentFragment.
See Loofah::ScrubBehavior for additional methods.
Class Method Summary collapse
Class Method Details
.parse(tags) ⇒ Object
12 13 14 15 16 |
# File 'lib/loofah/xml/document_fragment.rb', line 12 def parse() doc = Loofah::XML::Document.new doc.encoding = .encoding.name if .respond_to?(:encoding) new(doc, ) end |