Skip to content

fix: dont escape asset integrity #956

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

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Conversation

vnghia
Copy link
Contributor

@vnghia vnghia commented Mar 14, 2025

Previously, we escape the integrity hash and therefore produce an invalid html as in #765 (comment). This PR introduce a need_escape to not escape the value if needed.

Please take a look at it thank you :D !

@ctron
Copy link
Collaborator

ctron commented Mar 14, 2025

Thanks for the PR. I wonder if it makes sense to implement Deref<Target=str>? That way, all the .value could probably be removed again.

@vnghia
Copy link
Contributor Author

vnghia commented Mar 14, 2025

Thank you for a great suggestion. Could you check it again @ctron ?

@ctron ctron added this pull request to the merge queue Mar 14, 2025
Merged via the queue into trunk-rs:main with commit 8535c53 Mar 14, 2025
60 checks passed
@vnghia vnghia deleted the fix-integrity-html branch March 14, 2025 14:17
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.

2 participants