Sha256: 1c8b62400a5cd86c05c8599cfc6906802a023b7694d42ac82b1ee6d26ea9fa65
Contents?: true
Size: 656 Bytes
Versions: 25
Compression:
Stored size: 656 Bytes
Contents
# frozen_string_literal: true module Loofah module XML # :nodoc: # # Subclass of Nokogiri::XML::DocumentFragment. # # See Loofah::ScrubBehavior for additional methods. # class DocumentFragment < Nokogiri::XML::DocumentFragment class << self # # Overridden Nokogiri::XML::DocumentFragment # constructor. Applications should use Loofah.fragment to # parse a fragment. # def parse(tags) doc = Loofah::XML::Document.new doc.encoding = tags.encoding.name if tags.respond_to?(:encoding) self.new(doc, tags) end end end end end
Version data entries
25 entries across 23 versions & 4 rubygems