punkave/sanitize-html — pull request #17 by jimmed (2014-07-17 14:36:33+00:00)
Title: Allow access to element's attributes in exclusiveFilter callback

Sorry for the dodgy pull request before - got it right this time!

Essentially the idea here is to allow the definition of an exclusive filter like this:

```javascript
exclusiveFilter: function(frame) {
return frame.tag === 'img' && !(frame.attribs.src || '').trim();
}
```

which would filter images with no `src`.