Sha256: febba4a5b9ef2dd0c9b3f8110f35df55cecaab0eb26940b5daf7d53f0c4aa335

Contents?: true

Size: 482 Bytes

Versions: 17

Compression:

Stored size: 482 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
        def parse(tags)
          doc = Loofah::XML::Document.new
          doc.encoding = tags.encoding.name if tags.respond_to?(:encoding)
          new(doc, tags)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
loofah-2.24.0 lib/loofah/xml/document_fragment.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
loofah-2.23.1 lib/loofah/xml/document_fragment.rb
loofah-2.23.0 lib/loofah/xml/document_fragment.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/xml/document_fragment.rb
loofah-2.22.0 lib/loofah/xml/document_fragment.rb
loofah-2.21.4 lib/loofah/xml/document_fragment.rb
loofah-2.21.3 lib/loofah/xml/document_fragment.rb
loofah-2.21.2 lib/loofah/xml/document_fragment.rb
loofah-2.21.1 lib/loofah/xml/document_fragment.rb
loofah-2.21.0 lib/loofah/xml/document_fragment.rb
loofah-2.21.0.rc1 lib/loofah/xml/document_fragment.rb