|
@@ -1,15 +1,10 @@
|
1
|
1
|
import typing
|
2
|
2
|
from bs4 import BeautifulSoup, Tag
|
3
|
|
-from tracim.lib.email_processing.sanitizer_config.attrs_whitelist import \
|
4
|
|
- ATTRS_WHITELIST
|
5
|
|
-from tracim.lib.email_processing.sanitizer_config.class_blacklist import \
|
6
|
|
- CLASS_BLACKLIST
|
7
|
|
-from tracim.lib.email_processing.sanitizer_config.id_blacklist import \
|
8
|
|
- ID_BLACKLIST
|
9
|
|
-from tracim.lib.email_processing.sanitizer_config.tag_blacklist import \
|
10
|
|
- TAG_BLACKLIST
|
11
|
|
-from tracim.lib.email_processing.sanitizer_config.tag_whitelist import \
|
12
|
|
- TAG_WHITELIST
|
|
3
|
+from tracim.lib.email_processing.sanitizer_config.attrs_whitelist import ATTRS_WHITELIST # nopep8
|
|
4
|
+from tracim.lib.email_processing.sanitizer_config.class_blacklist import CLASS_BLACKLIST # nopep8
|
|
5
|
+from tracim.lib.email_processing.sanitizer_config.id_blacklist import ID_BLACKLIST # nopep8
|
|
6
|
+from tracim.lib.email_processing.sanitizer_config.tag_blacklist import TAG_BLACKLIST # nopep8
|
|
7
|
+from tracim.lib.email_processing.sanitizer_config.tag_whitelist import TAG_WHITELIST # nopep8
|
13
|
8
|
|
14
|
9
|
class HtmlSanitizerConfig(object):
|
15
|
10
|
# whitelist : keep tag and content
|