[12.x] Ensure mailable HTML assertions properly escape quotes#58595
Merged
taylorotwell merged 5 commits intolaravel:12.xfrom Feb 4, 2026
Merged
[12.x] Ensure mailable HTML assertions properly escape quotes#58595taylorotwell merged 5 commits intolaravel:12.xfrom
taylorotwell merged 5 commits intolaravel:12.xfrom
Conversation
|
Thanks for submitting a PR! Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
Member
|
Hmm, so why the previous code there in the first place? When was it added and why? |
Contributor
Author
|
It was added as part of #54737 but the tests added in that PR still pass with this change. This exact same issue was fixed 3 years ago here #42923, but I believe it was re introduced with the above. Perhaps @crynobone can answer that better? 🫡 |
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
crynobone
approved these changes
Feb 3, 2026
Member
|
The previous PR focus on Markdown usage and missed out example from just base view. |
Contributor
Author
|
Thanks @crynobone ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #58586
When using
assertSeeInHtml()escape is true by default but, apostrophes and quotes are not being properly escaped, causing assertions to fail such as:The fix ensures that quotes are properly escaped to match Blade's HTML escaping..
withQuotewas being set based on if the markdown property was set, where as I think it should be left as true.. (its true by default) - to match the escape default.I've targeted 12.x as everything passes and this only alters the assertion behaviour I can't think of a scenario where you'd expect it to not escape quotes etc, can target 13.x if you prefer! but felt like an oversight perhaps.
Have added a test to prevent regression 🫡