oxc-htmlish-parser parses HTML and HTML-based template languages (Vue, Angular) into a span-faithful typed AST, designed for building formatters.
How each dialect is read, and why, is in AGENTS.md. Deliberate differences from each dialect's oracle are listed in DIVERGENCES.md.
use oxc_htmlish_parser::{Allocator, Dialect, Parser};
let allocator = Allocator::default();
let root = Parser::new(&allocator, "<p>Hello</p>\n", Dialect::Html).parse().unwrap();
println!("{root:#?}");MIT