cgcardona / muse public
fix main #25 / 100

fix: escape HTML angle brackets in midi-demo card renderer (#125)

<S> in flag text (e.g. --strength <S>, --min-score <S>) was parsed by the browser as the <s> (strikethrough) element, bleeding strikethrough through the rest of each card. Add an esc() helper and apply it to cmd, desc, flags, and ret before inserting into innerHTML. The example field is left unescaped as it contains intentional HTML span tags.

Co-authored-by: Gabriel Cardona <gabriel@tellurstori.com>

G Gabriel Cardona <cgcardona@gmail.com> · 11h ago Mar 19, 2026 · ce9bbf9d · parent 4ca766c9
oldest
newest 76%

Comments

0

No comments yet. Be the first to start the discussion.