Add <cite> to ALLOWED_TAGS, because honestly

This commit is contained in:
Danielle McLean 2018-01-11 11:41:36 +11:00
parent 501c8c3ee3
commit 3e4f55fa9c
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -5,7 +5,7 @@ from django.utils.safestring import mark_safe
from bleach.sanitizer import Cleaner, ALLOWED_TAGS
from bleach.linkifier import LinkifyFilter
tags = ['code', 'p', 'pre', 'img', 'span']
tags = ['cite', 'code', 'p', 'pre', 'img', 'span']
tags.extend(ALLOWED_TAGS)
attributes = {
'a': ('href', 'title', 'class'),