cgcardona / muse public
fix main #26 / 100

fix: escape HTML angle brackets in midi-demo card renderer

<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.

G Gabriel Cardona <gabriel@tellurstori.com> · 12h ago Mar 19, 2026 · c932f684 · parent 1f0a7cd9
oldest
newest 75%

Comments

0

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