Add support for video tag

This commit is contained in:
2017-03-28 16:43:12 +02:00
parent 6001f1936c
commit c846ee9823
2 changed files with 3 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ ALLOWED_TAGS = [
'sup', 'sub', 'strike',
'img',
'iframe',
'video',
]
ALLOWED_ATTRIBUTES = {
@@ -30,6 +31,7 @@ ALLOWED_ATTRIBUTES = {
'acronym': ['title'],
'img': ['src', 'alt', 'width', 'height', 'title'],
'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen'],
'video': ['autoplay', 'controls', 'loop', 'muted', 'src'],
'*': ['style'],
}