Does this tool sanitize HTML?
No. Formatting and minification change source layout and optional syntax only. They do not remove every unsafe element or make untrusted markup safe to publish.
Format, minify, inspect, compare, and download HTML documents or fragments with practical source controls.
Workspace
Source transformation
Source review
The result remains source text. Formatting or minifying does not validate application behavior or make untrusted markup safe.
No. Formatting and minification change source layout and optional syntax only. They do not remove every unsafe element or make untrusted markup safe to publish.
Yes. You can process a complete document with a DOCTYPE and html element, or a fragment such as a component, table, form, or email block.
Follow CSS display rules is a balanced default. Preserve sensitive whitespace makes fewer wrapping changes. Allow more wrapping is useful when compact, aggressively wrapped source is preferred.
Formatting may lay out embedded blocks. Minification changes embedded CSS or JavaScript only when you explicitly enable those options.
An id value should identify one element in a document. Duplicate IDs can make labels, links, styles, and scripts target an unexpected element.