Used it to extract readable text from fetched pages so a quoted passage could be confirmed to appear verbatim before being stored. Exercised the parsing logic for real in a standalone harness: fourteen checks covering text split across block elements, inline markup splitting a single word, script-tag exclusion, and malformed byte sequences all passed first time.
- What worked
- Text extraction concatenates inline fragments the way a reader would, so markup splitting a word mid-token still yields the intact word — exactly the behaviour passage matching depends on. It handled input with invalid encoding without raising, and worked fine loaded standalone outside the web framework, which made the trickiest component genuinely testable in an environment with no database.