lizmat / HTML-Entities-Fast

Encode / Decode HTML entities faster
Artistic License 2.0
3 stars 1 forks source link

Wrong conversion for the equal sign #1

Closed 2colours closed 1 month ago

2colours commented 1 year ago

Hello,

apparently there are some problems with how the entity JSON used. There are conversions that consists of multiple codepoints, the notorious example being =⃥ here - (61 8421). It's simply generated as the first codepoint, that is, the equal sign, therefore equal signs can (and will) turn into =⃥ rather than correctly to =.

To avoid this, it would be good to use a list of codepoints rather than just one, or possibly use the grapheme-level representation on NQP level.

lizmat commented 1 month ago

Sorry, this issue has fallen through the cracks.

Release 0.0.5 has this fixed.

Closing this issue now