|
|
|
@ -2,10 +2,11 @@ from bleach.sanitizer import Cleaner, ALLOWED_TAGS |
|
|
|
|
from bleach.linkifier import LinkifyFilter |
|
|
|
|
from jinja2 import evalcontextfilter, Markup |
|
|
|
|
|
|
|
|
|
TAGS = ['cite', 'code', 'p', 'pre', 'img', 'span'] |
|
|
|
|
TAGS = ['cite', 'code', 'details', 'p', 'pre', 'img', 'span', 'summary'] |
|
|
|
|
TAGS.extend(ALLOWED_TAGS) |
|
|
|
|
ATTRIBUTES = { |
|
|
|
|
'a': ('href', 'title', 'class'), |
|
|
|
|
'details': ('open',), |
|
|
|
|
'img': ('alt', 'src', 'title'), |
|
|
|
|
'span': ('class',), |
|
|
|
|
} |
|
|
|
|