Skip to main content



Bleach: HTML Sanitization
·132 words·1 min
Articles Development Python Html Security
Bleach is a rather clever Python module for sanitizing HTML input and auto-linking URLs. It uses a¬†whitelist¬†for the allowed elements and attributes (thank God), and will avoid trying to “linkify” URLs that are already within an anchor element.