diff --git a/django/utils/html.py b/django/utils/html.py
index 650e848..27e6e0c 100644
a
|
b
|
from django.utils import six
|
17 | 17 | from django.utils.text import normalize_newlines |
18 | 18 | |
19 | 19 | # Configuration for urlize() function. |
20 | | TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)'] |
21 | | WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>')] |
| 20 | TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', '\''] |
| 21 | WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ('\'', '\'')] |
22 | 22 | |
23 | 23 | # List of possible strings used for bullets in bulleted lists. |
24 | 24 | DOTS = ['·', '*', '\u2022', '•', '•', '•'] |
diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py
index 090cc32..74c3c42 100644
a
|
b
|
class TestUtilsHtml(TestCase):
|
174 | 174 | ) |
175 | 175 | for value, tags, output in items: |
176 | 176 | self.assertEqual(f(value, tags), output) |
| 177 | |
| 178 | def test_urlize(self): |
| 179 | f = html.urlize |
| 180 | items = ( |
| 181 | ("before \"hi@example.com\" afterwards", u'before "<a href="mailto:hi@example.com">hi@example.com</a>" afterwards'), |
| 182 | ) |
| 183 | for value, output in items: |
| 184 | self.assertEqual(f(value), output) |