Allow more tags in comments, including iframe (for video embedding)
This commit is contained in:
@@ -14,12 +14,16 @@ ALLOWED_TAGS = [
|
|||||||
'acronym',
|
'acronym',
|
||||||
'b', 'strong',
|
'b', 'strong',
|
||||||
'i', 'em',
|
'i', 'em',
|
||||||
|
'del', 'kbd',
|
||||||
|
'dl', 'dt', 'dd',
|
||||||
'blockquote',
|
'blockquote',
|
||||||
'code',
|
'code',
|
||||||
'li', 'ol', 'ul',
|
'li', 'ol', 'ul',
|
||||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
|
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
|
||||||
'p',
|
'p', 'br', 'hr',
|
||||||
|
'sup', 'sub', 'strike',
|
||||||
'img',
|
'img',
|
||||||
|
'iframe',
|
||||||
]
|
]
|
||||||
|
|
||||||
ALLOWED_ATTRIBUTES = {
|
ALLOWED_ATTRIBUTES = {
|
||||||
@@ -27,6 +31,7 @@ ALLOWED_ATTRIBUTES = {
|
|||||||
'abbr': ['title'],
|
'abbr': ['title'],
|
||||||
'acronym': ['title'],
|
'acronym': ['title'],
|
||||||
'img': ['src', 'alt', 'width', 'height', 'title'],
|
'img': ['src', 'alt', 'width', 'height', 'title'],
|
||||||
|
'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen'],
|
||||||
'*': ['style'],
|
'*': ['style'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user