guardian/html-janitor — pull request #10 by thoughtmonster (2014-08-21 09:37:43+00:00)
Title: Allow for catch-all whitelist on a tag name

Setting a tag to 'true' in the sanitizer whitelist object will pass any attribute through for that node. So, for example:

```js
var janitor = new HTMLJanitor({
tags: {
div: {'id': true, 'class': true}, a: {'href': true, 'target': '_blank'}, p: {}, span: true
}
});
```

Will allow no attributes for `p` as per usual, but all attributes regardless of their value for `span`.