Undocumented
Constant | DEFAULT_ESCAPES |
Undocumented |
Constant | NON_UNICODE_ESCAPES |
Undocumented |
Variable | decode |
Undocumented |
Variable | xml_escapes |
Undocumented |
Class | Decode |
Undocumented |
Class | XMLEntityEscaper |
No class docstring; 0/2 instance variable, 0/2 class variable, 3/6 methods documented |
Function | htmlentityreplace_errors |
An encoding error handler. |
Function | is_ascii_str |
Undocumented |
Function | legacy_html_escape |
legacy HTML escape for non-unicode mode. |
Function | legacy_url_escape |
Undocumented |
Function | trim |
Undocumented |
Function | url_escape |
Undocumented |
Function | url_unescape |
Undocumented |
Function | xml_escape |
Undocumented |
Variable | _ASCII_re |
Undocumented |
Variable | _html_entities_escaper |
Undocumented |
dict[ str, str]
=
Undocumented
Value |
|
An encoding error handler.
This python codecs error handler replaces unencodable characters with HTML entities, or, if no HTML entity exists for the character, XML character references:
>>> u'The cost was €12.'.encode('latin1', 'htmlentityreplace') 'The cost was €12.'