mirror of
https://github.com/django/django.git
synced 2025-02-15 11:58:44 +00:00
Refs #32568 -- Optimized escape() by using SafeString instead of mark_safe().
This commit is contained in:
parent
09e499a39e
commit
cda81b79f2
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user