Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zetsuboii/html-parser
No-borrow HTML parser written in Rust
https://github.com/zetsuboii/html-parser
Last synced: about 2 months ago
JSON representation
No-borrow HTML parser written in Rust
- Host: GitHub
- URL: https://github.com/zetsuboii/html-parser
- Owner: zetsuboii
- Created: 2024-05-04T10:31:50.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-04T10:32:06.000Z (8 months ago)
- Last Synced: 2024-05-04T11:31:25.423Z (8 months ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# html-parser
Simple HTML parser that parses a HTML string and returns a list of tags and their
attributes without needing ownership over the string.## Usage
```rust
use crate::HtmlParser;let html = r#"
Test
Test
Test
"#;let parsed = parse_html(html).unwrap();
let root = parsed[0];
assert_eq!(root.tag(), "html");
assert_eq!(root.children().len(), 2);
```