#25157: urlizetrunc changes existing link ---------------------------------+-------------------------------------- Reporter: dexity | Owner: nobody Type: Uncategorized | Status: new Component: Template system | Version: 1.8 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+-------------------------------------- Changes (by dexity):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Old description: > urlizetrunc in 1.7x is used to not modify existing link. E.g. ```'foo<a > href=" google.com ">bar</a>buz'``` remains unchanged. In 1.8x it changes > to something like: ```'foo<a href=" <a href="http://google.com" > rel="nofollow">google.com</a> ">bar</a>buz'``` > (https://github.com/django/django/blob/master/tests/template_tests/filter_tests/test_urlizetrunc.py) > > Could you fix so that it doesn't change the existing links? New description: urlizetrunc in 1.7x is used to not modify existing link. E.g. {{{'foo<a href=" google.com ">bar</a>buz'}}} remains unchanged. In 1.8x it changes to something like: {{{'foo<a href=" <a href="http://google.com" rel="nofollow">google.com</a> ">bar</a>buz'}}} (https://github.com/django/django/blob/master/tests/template_tests/filter_tests/test_urlizetrunc.py) Could you fix so that it doesn't change the existing links? -- -- Ticket URL: <https://code.djangoproject.com/ticket/25157#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.11974aab112cf8e3be94346b857a82c1%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.