ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

validate HTML entities

Open michaelficarra opened this issue 3 years ago • 1 comments

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

michaelficarra avatar Aug 17 '22 22:08 michaelficarra

&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.

bakkot avatar Aug 18 '22 06:08 bakkot