mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fixed #27803 -- Kept safe status of lazy safe strings in conditional_escape
This commit is contained in:
parent
f8d52521ab
commit
a21ec12409
2 changed files with 4 additions and 1 deletions
|
@ -170,6 +170,7 @@ class TestUtilsHtml(SimpleTestCase):
|
|||
s = '<h1>interop</h1>'
|
||||
self.assertEqual(conditional_escape(s), '<h1>interop</h1>')
|
||||
self.assertEqual(conditional_escape(mark_safe(s)), s)
|
||||
self.assertEqual(conditional_escape(lazystr(mark_safe(s))), s)
|
||||
|
||||
def test_html_safe(self):
|
||||
@html_safe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue