This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zvin
Recipients zvin
Date 2011-09-08.19:00:20
SpamBayes Score 4.612342e-05
Marked as misclassified No
Message-id <1315508448.5.0.992592094222.issue12938@psf.upfronthosting.co.za>
In-reply-to
Content
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 translated.
"""

But if you set the optional flag quote to True, this function also escapes single quotes ('). You can see it by comparing _escape_map and _escape_map_full. [http://hg.python.org/cpython/file/cf811943046b/Lib/html/__init__.py]
The docstring needs to be updated.
History
Date User Action Args
2011-09-08 19:00:48zvinsetrecipients: + zvin
2011-09-08 19:00:48zvinsetmessageid: <1315508448.5.0.992592094222.issue12938@psf.upfronthosting.co.za>
2011-09-08 19:00:20zvinlinkissue12938 messages
2011-09-08 19:00:20zvincreate