Easy, whitelist-based HTML-sanitizing tool
conda install rpi::bleach
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes.