ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
13. Structured Markup Processing Tools
13.1 HTMLParser -- Simple HTML and XHTML parser
13.2 sgmllib -- Simple SGML parser
13.3 htmllib -- A parser for HTML documents
13.4 htmlentitydefs -- Definitions of HTML general entities
13.5 xml.parsers.expat -- Fast XML parsing using Expat
13.6 xml.dom -- The Document Object Model API
13.7 xml.dom.minidom -- Lightweight DOM implementation
13.8 xml.dom.pulldom -- Support for building partial DOM trees
13.9 xml.sax -- Support for SAX2 parsers
13.10 xml.sax.handler -- Base classes for SAX handlers
13.11 xml.sax.saxutils -- SAX Utilities
13.12 xml.sax.xmlreader -- Interface for XML parsers
13.13 xmllib -- A parser for XML documents

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference >> 13. Structured Markup Processing Tools
ActivePython 2.4 documentation

13.4 htmlentitydefs -- Definitions of HTML general entities

This module defines three dictionaries, name2codepoint, codepoint2name, and entitydefs. entitydefs is used by the htmllib module to provide the entitydefs member of the HTMLParser class. The definition provided here contains all the entities defined by XHTML 1.0 that can be handled using simple textual substitution in the Latin-1 character set (ISO-8859-1).

entitydefs
A dictionary mapping XHTML 1.0 entity definitions to their replacement text in ISO Latin-1.

name2codepoint
A dictionary that maps HTML entity names to the Unicode codepoints. New in version 2.3.

codepoint2name
A dictionary that maps Unicode codepoints to HTML entity names. New in version 2.3.
See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved