Commit d71bbf9f authored by Senthil Kumaran's avatar Senthil Kumaran

Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.

parent 305a68eb
......@@ -13,7 +13,8 @@ def escape(s, quote=True):
"""
Replace special characters "&", "<" and ">" to HTML-safe sequences.
If the optional flag quote is true (the default), the quotation mark
character (") is also translated.
characters, both double quote (") and single quote (') characters are also
translated.
"""
if quote:
return s.translate(_escape_map_full)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment