diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-09-12 23:14:13 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-09-12 23:14:13 (GMT) |
commit | d71bbf9fd5562ed50ebce993e1137ae7de0589f7 (patch) | |
tree | e20cd6fe01e1f691593365471941ec41c6c90441 | |
parent | 305a68eb4ac74c9c1989e460176c854c0c8fdfe2 (diff) | |
download | cpython-d71bbf9fd5562ed50ebce993e1137ae7de0589f7.zip cpython-d71bbf9fd5562ed50ebce993e1137ae7de0589f7.tar.gz cpython-d71bbf9fd5562ed50ebce993e1137ae7de0589f7.tar.bz2 |
Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.
-rw-r--r-- | Lib/html/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/html/__init__.py b/Lib/html/__init__.py index 335d214..02652ef 100644 --- a/Lib/html/__init__.py +++ b/Lib/html/__init__.py @@ -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) |