Added a filter which lets an email address break before the at-sign.

- Legacy-Id: 9493
This commit is contained in:
Henrik Levkowetz 2015-04-14 18:20:52 +00:00
parent bcef133784
commit cd14d95484

View file

@ -585,3 +585,8 @@ def urlize_html(html, autoescape=False):
textNode.replaceWith(BeautifulSoup(urlizedText))
return str(soup)
@register.filter
def emailwrap(email):
email = str(email)
return mark_safe(email.replace('@', '<wbr>@'))