jsocol/bleach — Issue #53: Remove or simplify delinkify
Author: jsocol
Created: 2012-02-03 20:44:55+00:00
State: open
Labels: delinkify

To be honest, I've never been a huge fan of `delinkify`. It's coming from a position of blacklisting, instead of white listing, and I think there are better ways to achieve a similar functionality.

With `clean`, the `attributes` list or dict can accept callables, which get the attribute and its value and either return `True` (leave it in) or `False` (remove it). I think this concept could be extended to the `tags` list, somehow. This will be trickier and requires some serious API consideration.

Thinking about how to solve it in a way that also solves Jeff's old complaint about repeating the tag list in the attributes dict.