﻿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
29826	urlize does not handle HTML angle brackets correctly	Marc Dequènes (Duck)	nobody	"Quack,

It was supposedly fixed in #24471 but I can reproduce with 1.11.16:

{{{
>>> import django
>>> django.VERSION
(1, 11, 16, u'final', 0)
>>> from django.template.defaultfilters import urlize
>>> print urlize(""coin &lt;https://www.example.org/&gt; coin"", 76)
coin &amp;lt;<a href=""https://www.example.org/%3E"" rel=""nofollow"">https://www.example.org/&amp;gt;</a> coin
}}}

Same with Python 3 and 2.1.2:

{{{
>>> django.VERSION
(2, 1, 2, 'final', 0)
>>> print(urlize(""coin &lt;https://www.example.org/&gt; coin"", 76))
coin &amp;lt;<a href=""https://www.example.org/%3E"" rel=""nofollow"">https://www.example.org/&amp;gt;</a> coin
}}}

I'll try to have a deeper look at the code but at the moment I have no fix to suggest.

This impact Mailman 3: https://gitlab.com/mailman/hyperkitty/issues/29
Hope we can find a workaround.

Regards.
\_o<
"	Bug	closed	Template system	1.11	Normal	wontfix		Vishvajit Pathak	Unreviewed	0	0	0	0	0	0
