Extend pruneHtml to accept a filter function

Thanks for this great utility!

I'm pruning HTML templates based on attributes in a deployment script. The cheerio selectors don't support xpath but they have nice filter support, which lends itself to an easy solution. Test included.