1. Ionata Digital
  2. DEFAULT
  3. django-bleach

Commits

whitehat2k13  committed b204063 Merge

Merged in whitehat2k13/add-bleach_linkify-template-filter-1392388193653 (pull request #1)

Add bleach_linkify template filter

  • Participants
  • Parent commits 790f874, d796122
  • Branches master

Comments (0)

Files changed (1)

File django_bleach/templatetags/bleach_tags.py

View file
  • Ignore whitespace
     return mark_safe(bleached_value)
 
 register.filter('bleach', bleach_value)
+
+@register.filter
+def bleach_linkify(value):
+    return bleach.linkify(value, parse_email=True)