diff options
| author | David <smithdc@gmail.com> | 2022-02-02 18:12:09 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-10 06:39:02 +0100 |
| commit | cda81b79f212e0666782393c52ad19c2790c9446 (patch) | |
| tree | ccbbd714acede9fc8147c91804e597ee52a195fb /django/utils/html.py | |
| parent | 09e499a39eec9342cb594bfd27939cfd1046f797 (diff) | |
Refs #32568 -- Optimized escape() by using SafeString instead of mark_safe().
Diffstat (limited to 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index d228e4c7bc..b6d6a01ce4 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -24,7 +24,7 @@ def escape(text): This may result in double-escaping. If this is a concern, use conditional_escape() instead. """ - return mark_safe(html.escape(str(text))) + return SafeString(html.escape(str(text))) _js_escapes = { |
