New submission from zvin :
The html.escape docstring says:
"""
Replace special characters "&", "<" and ">" to HTML-safe sequences.
If the optional flag quote is true (the default), the quotation mark
character (") is also translate
Changes by zvin :
--
title: html.escape does not mention single quotes (') -> html.escape docstring
does not mention single quotes (')
___
Python tracker
<http://bugs.pytho
zvin added the comment:
Or maybe instead of updating the docstring, we should remove the single quote
(') from _escape_map_full.
cgi.escape did not escaped the single quotes (') and if you use it now, it
says:
"PendingDeprecationWarning: cgi.escape is deprecated, use html