Skip to content

Escape the attribute values that are passed into the Head component #2403

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pascalbaljet
Copy link
Member

This PR fixes #2362 by escaping the attribute values on tags that are passing into the Head component. Currently, passing this line of valid HTML will break:

<meta name="description" content='This is the "best" example' />

The imported escape method is really small, but since we're already relying on es-toolkit, I think it's fine to leverage it. Still draft because it misses tests.

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.

Double Quotes Not Escaped within Head
1 participant