1 Commits

Author SHA1 Message Date
Georges-Antoine Assi
d15cd9e7a1 fix: keep summary line breaks and strip provider HTML (#5413)
* fix(ui): keep line breaks in the game summary

Normalize CRLF and bare CR to LF and render the summary with
white-space: pre-line so multi-line summaries keep their structure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(metadata): turn HTML in provider summaries into plain text

Add utils.html_text.html_to_text, a parser-based helper that drops known
HTML tags, maps paragraphs, line breaks and list items to newlines, and
unescapes entities. Unknown tags such as "<Start>" stay as literal text.
Moby, ScreenScraper, Steam, Flashpoint and LaunchBox summaries go through it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(metadata): separate table cells and keep bullets on their text

Addresses Greptile review on #5413: adjacent td/th cells now get a space
between them, and a list item wrapping its text in a paragraph keeps the
bullet on the same line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:49:17 -04:00