Kmp HTML Entity Decoder

Decode named, hexadecimal and decimal character entities in shared multiplatform code, where the platform's own markup helpers are unavailable. Covers the named table, the two numeric passes, the range check that keeps an out-of-range code point from ending the operation, why running the passes in one order over-decodes, and the rule that decoding happens once and at a boundary. Use when entity text such as `'` or `&` reaches the screen undecoded, when text decoded twice loses characters a user typed, or when a large code point stops the parse.

maxrave-dev e0a3999 8.5 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/kmp-html-entity-decoder commit e0a399969b

Frequently asked questions

npx skillmds@latest add maxrave-dev/kmp-html-entity-decoder