Whitelist more html tags
This commit is contained in:
parent
3363ccd47e
commit
17ef7e3a65
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user