Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3b7a14

Browse files
committed
Add entry for the html module.
1 parent d0d59b1 commit a3b7a14

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,17 @@ The :mod:`sqlite3` module was updated to version 2.6.0. It has two new capabili
13381338

13391339
(Contributed by R. David Murray and Shashwat Anand; :issue:`8845`.)
13401340

1341+
html
1342+
----
1343+
1344+
A new :mod:`html` module was introduced with only a single function,
1345+
:func:`~html.escape`, which is used for escaping reserved characters from HTML
1346+
markup:
1347+
1348+
>>> import html
1349+
>>> html.escape('x > 2 && x < 7')
1350+
'x &gt; 2 &amp;&amp; x &lt; 7'
1351+
13411352
socket
13421353
------
13431354

0 commit comments

Comments
 (0)