]> granicus.if.org Git - python/commitdiff
Add entry for the html module.
authorRaymond Hettinger <python@rcn.com>
Mon, 24 Jan 2011 05:26:00 +0000 (05:26 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 24 Jan 2011 05:26:00 +0000 (05:26 +0000)
Doc/whatsnew/3.2.rst

index 3f23a14b85c7c538dd33e4b5b13b39ee8b7218a6..9fcf6bfb1d9529e11432373a383223a8c26a040a 100644 (file)
@@ -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 &gt; 2 &amp;&amp; x &lt; 7'
+
 socket
 ------