Skip to content

Decode HTML entities in Horse Hospital titles - #765

Merged
alistairjcbrown merged 1 commit into
mainfrom
fix/horse-hospital-decode-title
Oct 8, 2026
Merged

alistairjcbrown merged 1 commit into
mainfrom
fix/horse-hospital-decode-title

Conversation

@alistairjcbrown

Copy link
Copy Markdown
Member

What

  • cinemas/thehorsehospital.com/transform.js: decode the JSON-LD event name with html-entities before stripping the venue suffix, the same way alexandrapalace.com does.
  • common/tests/test-titles.json: replace the & input that Update title normalization test #764 brought in with the decoded title. Its expected output is unchanged.

Why

Squarespace writes the event name into the JSON-LD with HTML escaping, and JSON.parse leaves that alone. So the listing showed 'RAFT' & The Parlour Collective & 'The Moon Over The Alley'. Of the venues in the latest transformed release, it's the only one with an & in a title.

Reviewer notes

The snapshot doesn't change because none of the recorded events have an ampersand in their name. The Horse Hospital and normalize-title tests pass, and so does lint.

🤖 Generated with Claude Code

Squarespace writes the event name into the JSON-LD HTML-escaped, so a
title with an ampersand came through as "&".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alistairjcbrown
alistairjcbrown merged commit f22b85c into main Oct 8, 2026
2 checks passed
@alistairjcbrown
alistairjcbrown deleted the fix/horse-hospital-decode-title branch October 8, 2026 21:01
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