dom-tree-rs 0.2.0

Tiny, zero-dependency, forgiving HTML parser: turn messy real-world HTML into a clean DOM tree (and JSON). WASM-first, no_std-friendly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Serialization of the tree to JSON.
//!
//! The default [`json`](crate#features) feature provides a hand-rolled,
//! zero-dependency [`Dom::to_json`](crate::Dom::to_json). The optional `serde`
//! feature adds `serde::Serialize` impls that produce the **same** JSON shape
//! (pinned by a roundtrip test).

#[cfg(feature = "json")]
mod json;

#[cfg(feature = "serde")]
mod serde_impl;