We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 305a68e commit d71bbf9Copy full SHA for d71bbf9
Lib/html/__init__.py
@@ -13,7 +13,8 @@ def escape(s, quote=True):
13
"""
14
Replace special characters "&", "<" and ">" to HTML-safe sequences.
15
If the optional flag quote is true (the default), the quotation mark
16
- character (") is also translated.
+ characters, both double quote (") and single quote (') characters are also
17
+ translated.
18
19
if quote:
20
return s.translate(_escape_map_full)
0 commit comments