From 910548634a23f7a3346158e93de0ab308ae52c0c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 11 Oct 2018 10:06:24 -0400 Subject: [PATCH] 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. --- django/utils/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', '•', '•', '•']