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

refactor(tokenizer): Use EntityDecoder #1480

Merged
merged 12 commits into from
Apr 13, 2023
Merged

refactor(tokenizer): Use EntityDecoder #1480

merged 12 commits into from
Apr 13, 2023

Conversation

fb55
Copy link
Owner

@fb55 fb55 commented Apr 13, 2023

entities now features an EntityDecoder class that closely follows the HTML spec. We can use it here to improve entity parsing performance and accuracy.

The biggest change here is that htmlparser2 now correctly handles named entities in attributes. foo=bar&amp=baz in an attribute will now be left as it is, following the expected behavior from the HTML spec.

@fb55 fb55 merged commit 11b6af2 into master Apr 13, 2023
@fb55 fb55 deleted the entity-decoder branch April 13, 2023 18:16
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

Successfully merging this pull request may close these issues.

1 participant