Sha256: 3035e75edb18eb9ef6d70c8fe7c4e98c4a812b8450c6627d602f992229f73630

Contents?: true

Size: 647 Bytes

Versions: 7

Compression:

Stored size: 647 Bytes

Contents

class HTMLEntities
  class << self

    #
    # Legacy compatibility class method allowing direct encoding of XHTML1 entities.
    # See HTMLEntities#encode for description of parameters.
    #
    # Deprecated.
    #
    def encode_entities(*args)
      xhtml1_entities.encode(*args)
    end

    #
    # Legacy compatibility class method allowing direct decoding of XHTML1 entities.
    # See HTMLEntities#decode for description of parameters.
    #
    # Deprecated.
    #
    def decode_entities(*args)
      xhtml1_entities.decode(*args)
    end

  private

    def xhtml1_entities
      @xhtml1_entities ||= new('xhtml1')
    end

  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
htmlentities-4.2.4 lib/htmlentities/legacy.rb
htmlentities-4.2.3 lib/htmlentities/legacy.rb
htmlentities-4.2.2 lib/htmlentities/legacy.rb
htmlentitties-4.2.1 lib/htmlentities/legacy.rb
htmlentities-4.2.1 lib/htmlentities/legacy.rb
htmlentities-4.2.0 lib/htmlentities/legacy.rb
htmlentities-4.1.0 lib/htmlentities/legacy.rb