hotmeal
hotmeal
HTML toolkit with arena-based DOM, html5ever parsing, tree diffing, and serialization.
Features
- HTML5 Parsing: Full HTML5 tree construction via html5ever with error recovery
- Arena-based DOM: Efficient arena-allocated tree with zero-copy parsing
- Tree Diffing: GumTree/Chawathe algorithm via cinereus for efficient DOM patches
- Serialization: HTML output with proper escaping and formatting
Usage
use ;
// Parse HTML
let old = parse_body;
let new = parse_body;
// Compute patches
let patches = diff.expect;
// Apply patches to transform old into new
let mut old_diff: Element = .into;
apply_patches.expect;
Sponsors
Thanks to:
License
Licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).