From: Raymond Hettinger Date: Mon, 24 Jan 2011 05:26:00 +0000 (+0000) Subject: Add entry for the html module. X-Git-Tag: v3.2rc2~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3b7a14d16b25f41a98cc3d2491e80528ee82a3d;p=python Add entry for the html module. --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 3f23a14b85..9fcf6bfb1d 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -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`.) +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 ------