Beautify unformatted HTML markup. Indents nested DOM tags, aligns attributes, cleans up spacing around void elements (e.g. ``, `
`), and highlights structural syntax.
An HTML Formatter adds consistent indentation, line breaks, and hierarchy to HTML code, making markup easy to read and debug.
Tokenizes HTML tags and text nodes, builds an indentation stack, and formats each node with appropriate nesting level.
` and `` tag contentsYes, `