extending urlize in django

Posted by hymloth on Stack Overflow See other posts from Stack Overflow or by hymloth
Published on 2010-02-19T10:58:22Z Indexed on 2010/03/24 12:13 UTC
Read the original article Hit count: 283

Filed under:

the urlize function from django.utils.html converts urls to clickable links. My problem is that I want to append a target="_blank" into the "< href..>", so that I open this link in a new tab. Is there any way that I can extend the urlize function to receive an extra argument? or should I make a custom filter using regexes to do this stuff? Is this efficient?

© Stack Overflow or respective owner

Related posts about django