Whitelist more html tags

This commit is contained in:
Tanner Collin 2019-12-14 07:39:10 +00:00
parent 3363ccd47e
commit 17ef7e3a65

View File

@ -1,6 +1,5 @@
import logging import logging
logging.basicConfig( logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.DEBUG) level=logging.DEBUG)
import commonmark import commonmark
@ -41,6 +40,18 @@ ALLOWED_TAGS = [
'summary', 'summary',
'br', 'br',
'pre', 'pre',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'table',
'thead',
'tr',
'th',
'td',
'tbody',
] ]
clean = Cleaner(tags=ALLOWED_TAGS).clean clean = Cleaner(tags=ALLOWED_TAGS).clean