pybluemonday is a library for sanitizing HTML very quickly via bluemonday.
Validate HTML against a small subset (for example generated by bleach)