Package htmlclean sanitizes HTML based on a tag and attribute whitelist.