mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
decodeHtmlEntities (duplicated in src/helpers.ts and src/commands/detail.ts) only handled decimal numeric character references (é); the equally valid hexadecimal form (é) fell through undecoded and surfaced as raw text in titles, companies, locations and descriptions. This bites Danish content especially (ae/o/aa often arrive as entities). It also used String.fromCharCode, which corrupts supplementary-plane code points (e.g. emoji, U+1F600). Add a hexadecimal numeric-entity rule and route both decimal and hex through a fromCodePoint-based helper with a valid-range guard, in both copies. Add network-free unit tests via the exported parseJobCards.