I am trying to import module HTMLSanitizerMixin
from module html5lib.sanitizer
in Python. After searching the web, I see that in the update for html5lib
they removed the sanitizer
package, but I can't seem to get it now even when I try to import it from the new location.
Asked
Active
Viewed 705 times
1

xskxzr
- 12,442
- 12
- 37
- 77

Daniel yaory
- 11
- 2
-
...the new location? What do you mean? – ForceBru Mar 05 '18 at 12:56
-
"Get rid of the sanitizer package. Merge sanitizer.sanitize into the sanitizer.htmlsanitizer module and move that to sanitizer. This means anyone who used sanitizer.sanitize or sanitizer.HTMLSanitizer needs no code changes". I took it form here:https://pypi.python.org/pypi/html5lib – Daniel yaory Mar 11 '18 at 10:00
-
@Danielyaory What are you actually trying to do? Why are you wanting to import it? – gsnedders May 29 '18 at 16:39