Skip to content

Commit

Permalink
Merge pull request #2001 from pallets/doc-html-escape
Browse files Browse the repository at this point in the history
document that single quote is escaped
  • Loading branch information
davidism authored Jan 12, 2021
2 parents 2190a45 + 592bec2 commit 8606f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/werkzeug/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8606f86

Please sign in to comment.