#13504: urlize corrupts links in paras
-----------------------------+----------------------------------------------
Reporter: TomDunham | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
Came across this after running urlize on some text that had been through
markdown.
{{{
In [14]: from django.utils import html
In [15]: html.urlize("<p>http://a.com</p>")
Out[15]: u'<p>http://a.com</p>' ## That was a surprise
In [16]: html.urlize("<p> http://a.com</p>")
Out[16]: u'<p> <a href="http://a.com%3C/p">http://a.com</p</a>>' ## That
can't be right
}}}
Django==1.1.1
--
Ticket URL: <http://code.djangoproject.com/ticket/13504>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.