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

Fail to parse html #49

Open
NightBlaze opened this issue Jul 17, 2024 · 1 comment
Open

Fail to parse html #49

NightBlaze opened this issue Jul 17, 2024 · 1 comment

Comments

@NightBlaze
Copy link

Comparing different libraries for parsing HTML and found that Skyscraper fails in some cases when other (sxd_html or one on Swift) works fine.

let link = "https://livejournal.com/";
let response = reqwest::blocking::get(link).expect("load url error");
let html_text = response.text().expect("get html text");
let document = skyscraper::html::parse(&html_text).expect("parse html");

returns parse html: EndTagMismatch { end_name: "svg", open_name: "symbol" }

@James-LG
Copy link
Owner

I'm currently working on a rewrite of the HTML module. It will follow the official HTML standard as defined by https://html.spec.whatwg.org/multipage/parsing.html. Hopefully that will solve your issues.

It's a lot of work though so I don't really have an ETA - depends how much free time I get.

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