Bleach: a new Python library

James Socol has released Bleach, a new Python library. As he says:

We’ve released another Python library: Bleach, for sanitizing HTML and automatically linking URLs in text, that we’re using on and It’s based on html5lib, which we chose because of its foundation in web standards and its active development community. Bleach is available on Github and PyPI.

Bleach uses a tree-walking approach to automatically link URLs that I think is pretty interesting. I wrote a short post outlining the method.

You can find more info at

Leave a Reply

Note: Only a member of this blog may post a comment.