#26958: Django urlize inside html tags
--------------------------------+--------------------
Reporter: henriquechehad | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Other) | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------
Hello.
The urlize is processing urls inside params.
It is adding "<a href=" inside attributes.
Example:
{{{
>>> from django.utils.html import urlize
>>> text = "<img src=\"https://www.url.com/image.jpg\">"
>>> urlize(text)
u'<img src="<a
href="https://www.url.com/image.jpg">https://www.url.com/image.jpg</a>">'
>>> text = '<iframe src="https://www.url.com/image.jpg">'
>>> urlize(text)
u'<iframe src="<a
href="https://www.url.com/image.jpg">https://www.url.com/image.jpg</a>">'
}}}
It didn't appeared in previous version (tested in 1.6)
--
Ticket URL: <https://code.djangoproject.com/ticket/26958>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/057.1011cb458da5581d9e06d4a90398ce1e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.