﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20363	urlize incorrectly includes quotation marks in links	EmilStenstrom	nobody	"{{{
>>> urlize(""some text here \""hi@example.com\"" and some text afterwards"")
u'some text here <a href=""mailto:""hi@example.com"""">""hi@example.com""</a> and some text afterwards'
}}}

Note the extra quotes inside the links.

Luckily, this is solved quite easily, just do this:

{{{
>>> from django.utils import html
>>> html.TRAILING_PUNCTUATION += ['""', '\'']
>>> html.WRAPPING_PUNCTUATION += [('""', '""'), ('\'', '\'')]
>>> urlize(""some text here \""hi@example.com\"" and some text afterwards"")
u'some text here ""<a href=""mailto:hi@example.com"">hi@example.com</a>"" and some text afterwards'
}}}

I suggest quotation marks are included in the *_PUNCTUATION variables in django.utils.html."	Bug	closed	Template system	dev	Normal	duplicate	urlize, quotes		Unreviewed	0	0	0	0	1	0
