Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Serializer] AddXmlEncoder::CDATA_WRAPPING_PATTERN context option#54663
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Serializer] AddXmlEncoder::CDATA_WRAPPING_PATTERN context option#54663
Uh oh!
There was an error while loading.Please reload this page.
Conversation
39f0428 to105a952CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
XmlEncoder::CDATA_WRAPPING_PATTERN context option
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please fix@OskarStark's comments and GTM, thanks.
5e25e13 to06ccf50Comparealexpozzi commentedApr 29, 2024
Hello@nicolas-grekas, |
06ccf50 to43e0750CompareOskarStark commentedApr 29, 2024
GTM = Good to me 😃 |
src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
43e0750 to129bb3fCompare8b5f95c to8edf532Comparesrc/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
8edf532 to8ab57d1Comparefabpot commentedMay 2, 2024
Thank you@alexpozzi. |
Uh oh!
There was an error while loading.Please reload this page.
First of all thank you for all your hard work!
This PR adds the ability to configure the CDATA wrapping pattern to give more flexibility on when to wrap values in a CDATA section.
For example, XML validators are not allowing double and single quotes outside of a CDATA section, with this change we could be able to change the pattern from
/[<>&]/to/[<>&"\']/and solve that issue without the need of writing a custom XMLEncoder.