Merge pull request #34286 from openedx/sundas/INF-1148

fix: added table tags in allowed tags
This commit is contained in:
sundasnoreen12
2024-02-23 21:14:55 +05:00
committed by GitHub

View File

@@ -9,7 +9,7 @@ import markdown
ALLOWED_TAGS = bleach.ALLOWED_TAGS | {
'br', 'dd', 'del', 'dl', 'dt', 'h1', 'h2', 'h3', 'h4', 'hr', 'img', 'kbd', 'p', 'pre', 's',
'strike', 'sub', 'sup'
'strike', 'sub', 'sup', 'table', 'thead', 'th', 'tbody', 'tr', 'td', 'tfoot'
}
ALLOWED_PROTOCOLS = {"http", "https", "ftp", "mailto"}
ALLOWED_ATTRIBUTES = {