diff options
author | 2020-01-06 14:04:41 +0100 | |
---|---|---|
committer | 2020-01-06 14:04:41 +0100 | |
commit | 86acb429bafc703684aa0bd47b6495c2044d89dd (patch) | |
tree | 395cfad8db2afa4db5010d1520a8a64bec0bb507 | |
parent | Adding iframes to HTML whitelist (diff) |
Adding iframe attributes to attribute whitelist
To properly show YouTube-embeds, we need to allow some attributes on `iframe` tags. I've added all attributes that are normal for such an embed, including `width` and `height` (which we may not need if we want to make the frame resize to its parent).
-rw-r--r-- | pydis_site/settings.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index e8b71e76..72cc0ab9 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -373,6 +373,7 @@ WIKI_MARKDOWN_HTML_ATTRIBUTES = { 'img': ['class', 'id', 'src', 'alt', 'width', 'height'], 'section': ['class', 'id'], 'article': ['class', 'id'], + 'iframe': ['width', 'height', 'src', 'frameborder', 'allow', 'allowfullscreen'], } WIKI_MARKDOWN_HTML_WHITELIST = [ |