~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Doc/library/html.entities.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
:mod:`html.entities` --- Definitions of HTML general entities
 
2
=============================================================
 
3
 
 
4
.. module:: html.entities
 
5
   :synopsis: Definitions of HTML general entities.
 
6
.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
 
7
 
 
8
 
 
9
This module defines three dictionaries, ``name2codepoint``, ``codepoint2name``,
 
10
and ``entitydefs``. ``entitydefs`` is used to provide the :attr:`entitydefs`
 
11
member of the :class:`html.parser.HTMLParser` class.  The definition provided
 
12
here contains all the entities defined by XHTML 1.0 that can be handled using
 
13
simple textual substitution in the Latin-1 character set (ISO-8859-1).
 
14
 
 
15
 
 
16
.. data:: entitydefs
 
17
 
 
18
   A dictionary mapping XHTML 1.0 entity definitions to their replacement text in
 
19
   ISO Latin-1.
 
20
 
 
21
 
 
22
.. data:: name2codepoint
 
23
 
 
24
   A dictionary that maps HTML entity names to the Unicode codepoints.
 
25
 
 
26
 
 
27
.. data:: codepoint2name
 
28
 
 
29
   A dictionary that maps Unicode codepoints to HTML entity names.