|
|
|
|
19
|
from tracim.lib.base import logger
|
19
|
from tracim.lib.base import logger
|
20
|
|
20
|
|
21
|
TRACIM_SPECIAL_KEY_HEADER = 'X-Tracim-Key'
|
21
|
TRACIM_SPECIAL_KEY_HEADER = 'X-Tracim-Key'
|
|
|
22
|
+# TODO BS 20171124: Think about replace thin dict config by object
|
22
|
BEAUTIFULSOUP_HTML_BODY_PARSE_CONFIG = {
|
23
|
BEAUTIFULSOUP_HTML_BODY_PARSE_CONFIG = {
|
23
|
'tag_blacklist': ['script', 'style', 'blockquote'],
|
24
|
'tag_blacklist': ['script', 'style', 'blockquote'],
|
24
|
'class_blacklist': ['moz-cite-prefix', 'gmail_extra', 'gmail_quote',
|
25
|
'class_blacklist': ['moz-cite-prefix', 'gmail_extra', 'gmail_quote',
|