diff --git a/lemoncurry/templatetags/bleach.py b/lemoncurry/templatetags/bleach.py index 9c0eb05..589bd2f 100644 --- a/lemoncurry/templatetags/bleach.py +++ b/lemoncurry/templatetags/bleach.py @@ -5,10 +5,11 @@ from django.utils.safestring import mark_safe from bleach.sanitizer import Cleaner, ALLOWED_TAGS from bleach.linkifier import LinkifyFilter -tags = ['code', 'p'] +tags = ['code', 'p', 'img'] tags.extend(ALLOWED_TAGS) attributes = { - 'a': ('href', 'title', 'class') + 'a': ('href', 'title', 'class'), + 'img': ('alt', 'src', 'title'), } register = template.Library()