Package tdi :: Package markup :: Package soup :: Module decoder :: Class HTMLDecoder
[frames] | no frames]

Class HTMLDecoder

source code

object --+
         |
        HTMLDecoder

Decoder for (X)HTML input
Instance Methods
 
__init__(self, encoding)
Initialization
source code
 
normalize(self, name) source code
 
decode(self, value, errors='strict') source code
 
attribute(self, value, errors='strict') source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __implements__ = [<class 'tdi.interfaces.DecoderInterface'>]
Instance Variables
str encoding
Character encoding
Properties

Inherited from object: __class__

Method Details

__init__(self, encoding)
(Constructor)

source code 
Initialization
Parameters:
  • encoding (str) - Encoding
Overrides: object.__init__

normalize(self, name)

source code 

See Also: DecoderInterface

decode(self, value, errors='strict')

source code 

See Also: DecoderInterface

attribute(self, value, errors='strict')

source code 

See Also: DecoderInterface


Class Variable Details

__implements__

Value:
[<class 'tdi.interfaces.DecoderInterface'>]

Instance Variable Details

encoding

Character encoding
Type:
str