mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Improved regex in strip_tags
Thanks Pablo Recio for the report. Refs #19237.
This commit is contained in:
@@ -68,6 +68,7 @@ class TestUtilsHtml(unittest.TestCase):
|
||||
('a<p onclick="alert(\'<test>\')">b</p>c', 'abc'),
|
||||
('a<p a >b</p>c', 'abc'),
|
||||
('d<a:b c:d>e</p>f', 'def'),
|
||||
('<strong>foo</strong><a href="http://example.com">bar</a>', 'foobar'),
|
||||
)
|
||||
for value, output in items:
|
||||
self.check_output(f, value, output)
|
||||
|
||||
Reference in New Issue
Block a user