diff --git a/django/utils/html.py b/django/utils/html.py
index ec7b28d..a9ebd17 100644
a
|
b
|
link_target_attribute_re = re.compile(r'(<a [^>]*?)target=[^\s>]+')
|
33 | 33 | html_gunk_re = re.compile(r'(?:<br clear="all">|<i><\/i>|<b><\/b>|<em><\/em>|<strong><\/strong>|<\/?smallcaps>|<\/?uppercase>)', re.IGNORECASE) |
34 | 34 | hard_coded_bullets_re = re.compile(r'((?:<p>(?:%s).*?[a-zA-Z].*?</p>\s*)+)' % '|'.join([re.escape(x) for x in DOTS]), re.DOTALL) |
35 | 35 | trailing_empty_content_re = re.compile(r'(?:<p>(?: |\s|<br \/>)*?</p>\s*)+\Z') |
36 | | strip_tags_re = re.compile(r'</?\S([^=]*=(\s*"[^"]*"|\s*\'[^\']*\'|\S*)|[^>])*?>', re.IGNORECASE) |
| 36 | strip_tags_re = re.compile(r'</?\S([^=>]*=(\s*"[^"]*"|\s*\'[^\']*\'|\S*)|[^>])*?>', re.IGNORECASE) |
37 | 37 | |
38 | 38 | |
39 | 39 | def escape(text): |
diff --git a/tests/regressiontests/utils/html.py b/tests/regressiontests/utils/html.py
index a0226c4..62c7dac 100644
a
|
b
|
class TestUtilsHtml(unittest.TestCase):
|
68 | 68 | ('a<p onclick="alert(\'<test>\')">b</p>c', 'abc'), |
69 | 69 | ('a<p a >b</p>c', 'abc'), |
70 | 70 | ('d<a:b c:d>e</p>f', 'def'), |
| 71 | ('<strong>foo</strong><a href="http://example.com">bar</a>', 'foobar'), |
71 | 72 | ) |
72 | 73 | for value, output in items: |
73 | 74 | self.check_output(f, value, output) |