Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advice on using lol-html purely as html parser #91

Closed
let4be opened this issue Jun 16, 2021 · 2 comments
Closed

Advice on using lol-html purely as html parser #91

let4be opened this issue Jun 16, 2021 · 2 comments

Comments

@let4be
Copy link

let4be commented Jun 16, 2021

Would it be possible to somehow disable rewriting functionality and simply use this library as a fast HTML parser/selector?...
I could simply ignore the output but some help from the library for such use case would be nice to have

@inikulin
Copy link
Contributor

inikulin commented Dec 2, 2021

It already operates as just a parser if you don't modify any tokens passed to the handlers

@inikulin inikulin closed this as completed Dec 2, 2021
@let4be
Copy link
Author

let4be commented Dec 2, 2021

Would it be possible to improve API a little bit?

maybe another HtmlRewriter::new which doesn't require us to specify an output sink? This would make it obvious that this library can be easily used(with no performance hit) as a simple parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants