2 unstable releases

0.9.0 Jan 14, 2025
0.8.0 May 2, 2024

#297 in GUI

Download history 4/week @ 2024-10-04 1/week @ 2024-10-11 5/week @ 2024-12-06 1/week @ 2024-12-13 83/week @ 2025-01-10 27/week @ 2025-01-17

110 downloads per month
Used in silkenweb-inline-html

MIT/Apache

520KB
7.5K SLoC

Silkenweb Parse

Parse HTML into Silkenweb data.


lib.rs:

Parse HTML Fragments

This module provides tools for parsing HTML fragments. An HTML fragment is a (possibly empty) list of HTML text or element nodes. For example:

<p>This is an HTML fragment</p>
  • Parsing on the browser is done using Element::innerHtml. On the server it uses scraper.
  • If any errors are present, a best effort is made to parse the HTML.
  • Any empty text nodes are removed.
  • Attributes are sorted to make the result more testable.

Dependencies

~17–26MB
~398K SLoC