mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
Titles are indexed as the source ATS wrote them and toResult passed them through untouched, so `detail intern-fullstack-amp-ai-innovation-noise-edaawqq2` printed `Intern - Fullstack & AI Innovation ` and the same title reached `search` output. In a 93-result /scrape batch, 1 title carried `&` and 3 ended in whitespace; /scrape Step 4.75 reads an undecoded entity in a title as a half-working parser. Run the title through the existing decodeHtmlEntities (already used for detail descriptions) and trim it; an empty or whitespace-only title still falls back to "(untitled)". Three new parsing.test.ts cases pin it; all three fail on the old pass-through. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>