From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/python~3.12/library%2Fhtml.entities.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 devdocs/python~3.12/library%2Fhtml.entities.html (limited to 'devdocs/python~3.12/library%2Fhtml.entities.html') diff --git a/devdocs/python~3.12/library%2Fhtml.entities.html b/devdocs/python~3.12/library%2Fhtml.entities.html new file mode 100644 index 00000000..23ba000b --- /dev/null +++ b/devdocs/python~3.12/library%2Fhtml.entities.html @@ -0,0 +1,20 @@ +

html.entities — Definitions of HTML general entities

Source code: Lib/html/entities.py

This module defines four dictionaries, html5, name2codepoint, codepoint2name, and entitydefs.

+html.entities.html5
+

A dictionary that maps HTML5 named character references 1 to the equivalent Unicode character(s), e.g. html5['gt;'] == '>'. Note that the trailing semicolon is included in the name (e.g. 'gt;'), however some of the names are accepted by the standard even without the semicolon: in this case the name is present with and without the ';'. See also html.unescape().

New in version 3.3.

+
+html.entities.entitydefs
+

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

+
+html.entities.name2codepoint
+

A dictionary that maps HTML4 entity names to the Unicode code points.

+
+html.entities.codepoint2name
+

A dictionary that maps Unicode code points to HTML4 entity names.

+

Footnotes

+1
+

See https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references

+

+ © 2001–2023 Python Software Foundation
Licensed under the PSF License.
+ https://docs.python.org/3.12/library/html.entities.html +

+
-- cgit v1.2.3