Skip to content

fix(scripts): unescape HTML entities in api-reference title checker - #102

Merged
EthanThatOneKid merged 1 commit into
mainfrom
fix-checker-html-entities
Aug 5, 2026
Merged

fix(scripts): unescape HTML entities in api-reference title checker#102
EthanThatOneKid merged 1 commit into
mainfrom
fix-checker-html-entities

Conversation

@EthanThatOneKid

Copy link
Copy Markdown
Contributor

Follow-up to #99/#101: the checker produced false positives on the reindex page because the sitemap XML escapes & as & in URLs and Mintlify renders & as the & entity in the h1. This decodes &, <, >, ", and ' when extracting page URLs and rendered titles.

Verified: node scripts/check-api-reference-titles.mjs now reports findings: none across all 30 pages (wazoo-api=14, worlds-api=16) and exits 0.

The sitemap XML escapes ampersands in URLs (&), and Mintlify renders
titles with HTML entities in the h1. Both made the checker report false
positives (e.g. the reindex page "Reindex world vector & FTS indexes").
Decode &, <, >, ", and ' when extracting page URLs and
rendered titles so the check compares against the plain-text titles.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
@EthanThatOneKid
EthanThatOneKid merged commit 5d5aeba into main Aug 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant