class XMLEntityEscaper(object):
Undocumented
Method | __escape |
Undocumented |
Method | __init__ |
Undocumented |
Method | __unescape |
Undocumented |
Method | escape |
Replace characters with their character references. |
Method | escape_entities |
Replace characters with their character entity references. |
Method | unescape |
Unescape character references. |
Class Variable | __characterrefs |
Undocumented |
Class Variable | __escapable |
Undocumented |
Instance Variable | codepoint2entity |
Undocumented |
Instance Variable | name2codepoint |
Undocumented |
Replace characters with their character references.
Replace characters by their named entity references. Non-ASCII characters, if they do not have a named entity reference, are replaced by numerical character references.
The return value is guaranteed to be ASCII.
Replace characters with their character entity references.
Only characters corresponding to a named entity are replaced.