Bleach

Bleach is a Python-based library for sanitizing untrusted HTML, and is useful for processing foreign content like comments or reply contexts. Because it uses html5lib, it also normalizes any HTML that it touches.