diff --git a/src/werkzeug/utils.py b/src/werkzeug/utils.py index f5dbfad1f..2713413ba 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.