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

validate HTML entities #476

Open
michaelficarra opened this issue Aug 17, 2022 · 1 comment
Open

validate HTML entities #476

michaelficarra opened this issue Aug 17, 2022 · 1 comment

Comments

@michaelficarra
Copy link
Member

When I accidentally write &lte; when I mean ≤, ecmarkup should complain.

@bakkot
Copy link
Contributor

bakkot commented Aug 18, 2022

&lte; is a particularly tricky one because - fun fact - &lte; decodes to <e;. Certain entities do not require a trailing semicolon, though this is a "missing-semicolon-after-character-reference parse error".

Should be possible to differentiate, but the package all the parsers use doesn't, so it might require a bit of work.

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