Skip to content

Conversation

@ostrolucky
Copy link
Contributor

We have lot of snapshots containing links. I am sure it will be much easier to read them if they are unescaped. Most languages do not do these escapings by default, PHP does it because of some security-wise XSS edge cases that are not relevant here.

@freekmurze
Copy link
Member

Nice, but merging this now would make all existing snapshot tests fail.

We'll take a look again when tagging a new major version.

@freekmurze freekmurze closed this Dec 9, 2024
@ostrolucky
Copy link
Contributor Author

How would it fail existing snapshot tests? You don't check contents literal. You json_decode() first and compare arrays. Result of json_decode() before and after my changes is still same.

@freekmurze
Copy link
Member

How would it fail existing snapshot tests? You don't check contents literal. You json_decode() first and compare arrays. Result of json_decode() before and after my changes is still same.

Ah, you are correct...

@freekmurze freekmurze reopened this Dec 9, 2024
@freekmurze freekmurze merged commit 0e578bd into spatie:main Dec 9, 2024
2 checks passed
@freekmurze
Copy link
Member

Thanks!

@ostrolucky
Copy link
Contributor Author

You are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants