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

Remove escape-html feature and the resolve_html5_entity function #765

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mingun
Copy link
Collaborator

@Mingun Mingun commented Jun 21, 2024

Because since #739 custom entity resolution function have precedence over standard one, user can implement resolution of HTML entities by yourself. So I think, we can completely remove HTML 5 support, which in any case was not ideal. Instead of use big match statement it is probably better to use HashMap with predefined entities and user can do that.

Because since tafia#739 custom entity resolution function have precedence over standard one,
so user can implement resolution of HTML entities by yourself.
@Mingun Mingun requested a review from dralley June 21, 2024 12:33
@dralley
Copy link
Collaborator

dralley commented Jun 21, 2024

We could remove it entirely, but I'd kind of prefer to keep it around but change the implementation to make it low-cost. We handle HTML attributes already, after all, there's no plans to remove that functionality

@Mingun
Copy link
Collaborator Author

Mingun commented Jun 21, 2024

Ok, I'll investigate this later.

@Mingun Mingun marked this pull request as draft June 21, 2024 15:14
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.

2 participants