Resolve Display Issue With Alt Titles That Have Apostrophes #45

Closed
opened 2024-01-14 14:44:09 -06:00 by jimmyb · 1 comment
Owner

Games that have apostrophes in their alternative titles display in lists with a backslash. This is likely just a matter of escaping the alternative title properly either when inserting it into the database or displaying on the page, or both.

https://internal.myvideogamelist.com/T97

The above link can also be seen for more information.

Games that have apostrophes in their alternative titles display in lists with a backslash. This is likely just a matter of escaping the alternative title properly either when inserting it into the database or displaying on the page, or both. https://internal.myvideogamelist.com/T97 The above link can also be seen for more information.
jimmyb self-assigned this 2026-06-03 18:01:31 -05:00
Member

Implemented and pushed in commit 0335964 (Fix escaped alternate title display).

Notes:

  • Current Blade output was already escaping correctly; the remaining likely failure mode was legacy stored alt_titles data containing backslash-escaped quotes, e.g. Samurai\'s Legend.
  • Added a Game::alt_titles accessor/mutator that normalizes legacy backslash-escaped single/double quotes on read and write, so list cards, game profiles, admin displays, and future saves all get the cleaned value from the model.
  • Added regression coverage to the newly-added-games page test to seed a slashed apostrophe and verify the rendered list card shows Samurai's Legend without the backslash.

Verification:

  • vendor/bin/pint --dirty --format agent
  • php artisan test --compact tests/Feature/NewlyAddedGamesPageTest.php (7 passed, 57 assertions)
Implemented and pushed in commit 0335964 (`Fix escaped alternate title display`). Notes: - Current Blade output was already escaping correctly; the remaining likely failure mode was legacy stored `alt_titles` data containing backslash-escaped quotes, e.g. `Samurai\'s Legend`. - Added a `Game::alt_titles` accessor/mutator that normalizes legacy backslash-escaped single/double quotes on read and write, so list cards, game profiles, admin displays, and future saves all get the cleaned value from the model. - Added regression coverage to the newly-added-games page test to seed a slashed apostrophe and verify the rendered list card shows `Samurai's Legend` without the backslash. Verification: - `vendor/bin/pint --dirty --format agent` - `php artisan test --compact tests/Feature/NewlyAddedGamesPageTest.php` (7 passed, 57 assertions)
Codex 2026-06-03 18:09:38 -05:00
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MyVideoGameList/myvideogamelist.com#45
No description provided.