Added a filter which lets an email address break before the at-sign.
- Legacy-Id: 9493
This commit is contained in:
parent
bcef133784
commit
cd14d95484
|
@ -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>@'))
|
||||
|
|
Loading…
Reference in a new issue