Pelokalan
Python ID
id en
Masuk
Proyek
library__html-entities.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
:mod:`!html.entities` --- Definitions of HTML general entities
**Source code:** :source:`Lib/html/entities.py`
**Source code:** :source:`Lib/html/entities.py`
This module defines four dictionaries, :data:`html5`, :data:`name2codepoint`, :data:`codepoint2name`, and :data:`entitydefs`.
Modul ini mendefinisikan empat kamus, :data:`html5`, :data:`name2codepoint`, :data:`codepoint2name`, dan :data:`entitydefs`.
A dictionary that maps HTML5 named character references [#]_ 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 :func:`html.unescape`.
Kamus *dictionary* yang memetakan referensi karakter bernama di HTML5 [#]_ ke karakter(-karakter) Unicode yang setara, mis. ``html5['gt;'] == '>'``. Perhatikan bahwa tanda titik koma dimasukkan dalam nama (mis. ``'gt;'``), namun beberapa nama diterima oleh standar bahkan tanpa tanda titik koma: dalam hal ini nama hadir dengan dan tanpa ``';'``. Lihat juga :func:`html.unescape`.
A dictionary mapping XHTML 1.0 entity definitions to their replacement text in ISO Latin-1.
Kamus *dictionary* memetakan definisi entitas XHTML 1.0 untuk teks pengganti mereka dalam ISO Latin-1.
A dictionary that maps HTML4 entity names to the Unicode code points.
A dictionary that maps Unicode code points to HTML4 entity names.
Footnotes
Catatan kaki
See https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references