summaryrefslogtreecommitdiff
path: root/src/werkzeug/utils.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-01-12 10:04:07 -0800
committerDavid Lord <davidism@gmail.com>2021-01-12 10:04:07 -0800
commit592bec212721de904e992f44457849a92222fb9f (patch)
treed2560f39b1559dd41245c6a583b7ed8e86a3035c /src/werkzeug/utils.py
parent2190a45fa550030caf64c5403873502a555f8c89 (diff)
downloadwerkzeug-592bec212721de904e992f44457849a92222fb9f.tar.gz
document that single quote is escaped
Diffstat (limited to 'src/werkzeug/utils.py')
-rw-r--r--src/werkzeug/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/werkzeug/utils.py b/src/werkzeug/utils.py
index f5dbfad1..2713413b 100644
--- a/src/werkzeug/utils.py
+++ b/src/werkzeug/utils.py
@@ -446,7 +446,8 @@ def secure_filename(filename: str) -> str:
def escape(s):
- """Replace ``&``, ``<``, ``>``, and ``"`` with HTML-safe sequences.
+ """Replace ``&``, ``<``, ``>``, ``"``, and ``'`` with HTML-safe
+ sequences.
``None`` is escaped to an empty string.