Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
Standards-compliant library for parsing and serializing HTML documents and fragments in Python
Safely add untrusted strings to HTML/XML markup.
A jquery-like library for python
Converts XML to Python objects
Python module that makes working with XML feel like you are working with JSON