mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use html.escape()/unescape().
This commit is contained in:
committed by
Carlton Gibson
parent
28d5262fa3
commit
8d76443aba
@@ -27,7 +27,7 @@ class TestUtilsHtml(SimpleTestCase):
|
||||
('<', '<'),
|
||||
('>', '>'),
|
||||
('"', '"'),
|
||||
("'", '''),
|
||||
("'", '''),
|
||||
)
|
||||
# Substitution patterns for testing the above items.
|
||||
patterns = ("%s", "asdf%sfdsa", "%s1", "1%sb")
|
||||
@@ -70,6 +70,8 @@ class TestUtilsHtml(SimpleTestCase):
|
||||
items = (
|
||||
('<p>See: 'é is an apostrophe followed by e acute</p>',
|
||||
'See: 'é is an apostrophe followed by e acute'),
|
||||
('<p>See: 'é is an apostrophe followed by e acute</p>',
|
||||
'See: 'é is an apostrophe followed by e acute'),
|
||||
('<adf>a', 'a'),
|
||||
('</adf>a', 'a'),
|
||||
('<asdf><asdf>e', 'e'),
|
||||
|
||||
Reference in New Issue
Block a user