Sanitizer with white/black list of elements/attributes

Update to the HTML sanitizer. This version uses blacklisting and whitelisting of elements/attributes to make it more flexible if they need to be added/removed later.

This is somewhat inspired from the Universal feed parser's HTML sanitizer.