Sha256: a03fb18451c25880c686e6d5a670b27ad5c24e7ff594edc4dad73b025de68b41

Contents?: true

Size: 264 Bytes

Versions: 38

Compression:

Stored size: 264 Bytes

Contents

# encoding: utf-8

class Sanitize; module Transformers

  CleanCDATA = lambda do |env|
    node = env[:node]

    if node.type == Nokogiri::XML::Node::CDATA_SECTION_NODE
      node.replace(Nokogiri::XML::Text.new(node.text, node.document))
    end
  end

end; end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
sanitize-6.1.3 lib/sanitize/transformers/clean_cdata.rb
sanitize-6.1.2 lib/sanitize/transformers/clean_cdata.rb
sanitize-6.1.1 lib/sanitize/transformers/clean_cdata.rb
sanitize-6.1.0 lib/sanitize/transformers/clean_cdata.rb
sanitize-6.0.2 lib/sanitize/transformers/clean_cdata.rb
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/sanitize-6.0.1/lib/sanitize/transformers/clean_cdata.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/sanitize-6.0.1/lib/sanitize/transformers/clean_cdata.rb
sanitize-6.0.1 lib/sanitize/transformers/clean_cdata.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/sanitize-6.0.0/lib/sanitize/transformers/clean_cdata.rb
sanitize-6.0.0 lib/sanitize/transformers/clean_cdata.rb
sanitize-5.2.3 lib/sanitize/transformers/clean_cdata.rb
sanitize-5.2.2 lib/sanitize/transformers/clean_cdata.rb
sanitize-5.2.1 lib/sanitize/transformers/clean_cdata.rb
sanitize-5.2.0 lib/sanitize/transformers/clean_cdata.rb
sanitize-5.1.0 lib/sanitize/transformers/clean_cdata.rb
sanitize-5.0.0 lib/sanitize/transformers/clean_cdata.rb
sanitize-4.6.6 lib/sanitize/transformers/clean_cdata.rb
sanitize-4.6.5 lib/sanitize/transformers/clean_cdata.rb
sanitize-4.6.4 lib/sanitize/transformers/clean_cdata.rb
sanitize-4.6.3 lib/sanitize/transformers/clean_cdata.rb