Data and text
Parse, clean, validate, escape and strip personal data.
0 of 8 solved · 0 of 180 XPStart: Escape model output before rendering it
- 1Escape model output before rendering itA model can return HTML, by accident or because someone asked for it in the prompt. With innerHTML that HTML runs.Easy · 10 min · 10 XP
- 2Clean slugs for Spanish titlesAccents, ñ and opening punctuation end up as broken URLs. Turn them into a readable slug.Easy · 10 min · 10 XP
- 3Dedupe models and group them by familyA model inventory with repeated entries: keep the latest of each one and count how many there are per family.Medium · 15 min · 20 XP
- 4Validate the JSON a model returnsAsking a model for JSON does not guarantee it arrives well formed: fields go missing or numbers come back as text. Check it before you use it.Medium · 15 min · 20 XP
- 5Parse a CSV with quotesBefore indexing data for RAG you have to read it correctly. A split(',') breaks on the first name that contains a comma.Medium · 20 min · 20 XP
- 6Extract ISO dates and Spanish datesBefore handing text to a model, pull the dates out with a regular expression and drop the ones that do not exist.Medium · 20 min · 20 XP
- 7Strip personal data before the prompt leavesDNI, NIE and IBAN carry a check digit. Swap them for placeholders before calling a model and put them back in the answer.Medium · 25 min · 20 XP
- 8Capstone: from a messy CSV to a summary you can trustCapstonePuts the track together: parse CSV with quotes, validate every field with its line number and aggregate per model.Hard · 35 min · 60 XP