Opened 9 years ago
Last modified 9 years ago
#25157 closed Uncategorized
urlizetrunc changes existing link — at Version 1
Reported by: | dexity | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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?
Note:
See TracTickets
for help on using tickets.