Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak: Add escaping to HTML attributes #1597

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

tomusborne
Copy link
Owner

This PR adds escaping to all of our HTML attributes on the frontend.

This ensures that the values added/used are safe on the frontend, and won't cause any vulnerabilities or broken HTML.

It also makes it so values coming in via dynamic tags are escaped, preventing broken HTML if dynamic values aren't HTML attribute friendly.

@tomusborne tomusborne added the refactoring Refactoring, minor code changes label Dec 16, 2024
@tomusborne tomusborne added this to the 2.0.0 milestone Dec 16, 2024
@tomusborne tomusborne requested a review from iansvo December 16, 2024 21:17
@tomusborne tomusborne merged commit 33fa55e into release/2.0.0 Dec 18, 2024
9 checks passed
@tomusborne tomusborne deleted the tweak/escape-html-attributes branch December 18, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring, minor code changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant