Skip to content

Commit d71bbf9

Browse files
committed
Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.
1 parent 305a68e commit d71bbf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/html/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def escape(s, quote=True):
1313
"""
1414
Replace special characters "&", "<" and ">" to HTML-safe sequences.
1515
If the optional flag quote is true (the default), the quotation mark
16-
character (") is also translated.
16+
characters, both double quote (") and single quote (') characters are also
17+
translated.
1718
"""
1819
if quote:
1920
return s.translate(_escape_map_full)

0 commit comments

Comments
 (0)