Sanitize both keys and content, minify HTML output.