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

Fix inconsistent escaping behaviour #15124

Closed

Conversation

ralphjsmit
Copy link
Contributor

There is some inconsistency with regards to how attributes are escaped. In most places they are already not escaped, this PR prevents the escaping on the rest of the places in the framework where we are using ->merge().

This solves issues where eg ->extraEntryWrapperAttributes([ 'class' => '[&_dt>span]:text-gray-500', ]) is escaped and ends up as [&amp...] in the html.

@danharrin
Copy link
Member

Can you please do this in v4? Technically it is a breaking change and while I think we should make it consistent, it could cause security issues for people who are expecting these to be escaped. As a workaround in v3 you might be able to pass an HtmlString() where you don't want these escaped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants