diff options
author | Skip Montanaro <skip@pobox.com> | 2005-08-02 02:50:25 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2005-08-02 02:50:25 (GMT) |
commit | 97b2fa229c219652b83fb22670f1b6af4d3a18c3 (patch) | |
tree | 845fa08f4aeb3cfa34e76cc01a1b795f49a3b913 /Lib/cgi.py | |
parent | 0d6615fd29063bdaccb13e1fbae542fb666d8728 (diff) | |
download | cpython-97b2fa229c219652b83fb22670f1b6af4d3a18c3.zip cpython-97b2fa229c219652b83fb22670f1b6af4d3a18c3.tar.gz cpython-97b2fa229c219652b83fb22670f1b6af4d3a18c3.tar.bz2 |
Bring cgi.escape docstring slightly more in line with the library ref
manual. Closes #1243553.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1041,7 +1041,9 @@ environment as well. Here are some common variable names: # ========= def escape(s, quote=None): - """Replace special characters '&', '<' and '>' by SGML entities.""" + '''Replace special characters "&", "<" and ">" to HTML-safe sequences. + If the optional flag quote is true, the quotation mark character (") + is also translated.''' s = s.replace("&", "&") # Must be done first! s = s.replace("<", "<") s = s.replace(">", ">") |