Skip to content

fix: escape project name in generated HTML - #29

Draft
johnjheejin wants to merge 1 commit into
companyjupiter:mainfrom
johnjheejin:fix/project-name-html-escaping
Draft

fix: escape project name in generated HTML#29
johnjheejin wants to merge 1 commit into
companyjupiter:mainfrom
johnjheejin:fix/project-name-html-escaping

Conversation

@johnjheejin

Copy link
Copy Markdown

Summary

  • escape the configured project name before inserting it into generated HTML
  • cover all HTML-sensitive characters used in text content
  • add CLI regression coverage for both project-name locations in the viewer

Root cause

CONFIG.name was interpolated directly into the generated document title and project-name element. A project name containing markup could therefore become executable HTML instead of displayed text.

User impact

Generated viewers now display project names as text, including names that contain HTML-sensitive characters, without creating injected elements or event handlers.

Validation

  • npm test (10 tests passed)
  • node --check quarkify.mjs
  • git diff --check

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