Html parser
WIP - work in progress, use at your own risk
A simple and general purpose html parser, using Pest.
What is it not
- It's not a high-performance browser-grade parser
- It's not 100% complient with html
- It's not a parser that includes node selection and dom manipulation
If your requirements matches any of the above, then you're most likely looking for any of the following crates:
Features
- Parse html document
- Parse html fragments
- Parse custom, non-standard, elements
- Doesn't include comments in the AST
- Removes dangling elements
Examples
Parse html document
use HtmlParser;
Parse html fragment
use HtmlParser;
Print to json
use ;
Contributions
I would love to get some feedback if you find my little project useful. Please feel free to highlight issues with my code or submit a PR in case you want to improve it.