It works, and it's rather simple. Another solution would be to instantiate an ElementTree, and parse it this way, but this is already what ```bleach.linkify``` does, why not use it?

What line 1149 does is provide linkify with a list of attributes to set in the link. Not providing anything fails, the minimum is to have the ```_text``` key, which is the inner text of the link.