litehtml
Safe Rust bindings for litehtml — a lightweight HTML/CSS rendering engine.
Features
vendored(default) — compile litehtml from bundled sourcepixbuf— CPU-based pixel buffer rendering viatiny-skiaandcosmic-texthtml— encoding detection, sanitization, URI resolution, legacy attribute preprocessingemail— email-specific defaults on top ofhtml
Quick start
use prepare_html;
let prepared = prepare_html;
// prepared.html — sanitized UTF-8 HTML
// prepared.images — resolved data:/cid: images
See the repository for full documentation and examples.