Ensure HTML output is correctly escaped.