domq 0.5.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
---
source: tests/corpus.rs
expression: parse(html).to_html()
---
<ul id="list">
  <li class="item">Item 1</li>
  <li class="item">Item 2</li>
</ul>