Skip to content

Escape workstation lightbox alt and caption text - #183

Open
Chessing234 wants to merge 1 commit into
omacom:masterfrom
Chessing234:fix/workstations-escape-modal
Open

Escape workstation lightbox alt and caption text#183
Chessing234 wants to merge 1 commit into
omacom:masterfrom
Chessing234:fix/workstations-escape-modal

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • The workstations modal built HTML with innerHTML and unescaped alt/caption text.
  • Escape those fields so quotes or tags cannot break out of the markup.

Test plan

  • Open a workstation lightbox with a normal caption
  • Confirm a caption containing < or " renders as text

Made with Cursor

The modal builds HTML via innerHTML without escaping. A quote or tag in alt/figcaption can break out of the attribute or element.

Signed-off-by: Taksh <takshkothari09@gmail.com>
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