mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Add entry for the html module.
This commit is contained in:
parent
d0d59b138d
commit
a3b7a14d16
1 changed files with 11 additions and 0 deletions
|
@ -1338,6 +1338,17 @@ The :mod:`sqlite3` module was updated to version 2.6.0. It has two new capabili
|
||||||
|
|
||||||
(Contributed by R. David Murray and Shashwat Anand; :issue:`8845`.)
|
(Contributed by R. David Murray and Shashwat Anand; :issue:`8845`.)
|
||||||
|
|
||||||
|
html
|
||||||
|
----
|
||||||
|
|
||||||
|
A new :mod:`html` module was introduced with only a single function,
|
||||||
|
:func:`~html.escape`, which is used for escaping reserved characters from HTML
|
||||||
|
markup:
|
||||||
|
|
||||||
|
>>> import html
|
||||||
|
>>> html.escape('x > 2 && x < 7')
|
||||||
|
'x > 2 && x < 7'
|
||||||
|
|
||||||
socket
|
socket
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue