diff options
| author | Tim Graham <timograham@gmail.com> | 2018-10-11 10:06:24 -0400 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2018-10-12 08:13:52 +0200 |
| commit | 910548634a23f7a3346158e93de0ab308ae52c0c (patch) | |
| tree | 0f3de9ccf12099e87beac34ccc5409f237fc0445 /django/utils/html.py | |
| parent | 70a80ff1be054622ab0db1af5e58bf15b42b7a2e (diff) | |
Refs #29826 -- Removed unused characters from urlize configuration.
The HTML characters are unused because urlize is meant to be applied to
plain text and these characters aren't properly detected (refs #29826).
Angle brackets and quotes are present in word_split_re and therefore
won't be used in WRAPPING_PUNCTUATION.
Diffstat (limited to 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index e68e25443f..24754553b6 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -14,7 +14,7 @@ from django.utils.text import normalize_newlines # Configuration for urlize() function. TRAILING_PUNCTUATION_CHARS = '.,:;!' -WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ('\'', '\'')] +WRAPPING_PUNCTUATION = [('(', ')'), ('[', ']')] # List of possible strings used for bullets in bulleted lists. DOTS = ['·', '*', '\u2022', '•', '•', '•'] |
