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

possibility to serialize/deserialize xml tags in strings unchanged #140

Open
RustyJoeM opened this issue Apr 7, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@RustyJoeM
Copy link

Hello,

i have trouble serializing (and deserializing) the Strings. I'd like to serialize string like "<hello>" into same text, but i keep getting "&lt;hello&gt;".

Is this possible currently with YaSerDe either directly, or with some workaround (excluding hard reverse transform on resulting big xml string where it can affect also original/intended &lt;s / &gt;s)?

I understand the tranform due to html/xml displaying etc., but e.g. use-cases where XML messages are being built/processed on String level require ability to pass around strings without any implicit magic.

(e.g pre-defined XML structure, with general inner payload of huge/nested subtree that is of no interest to be typed on the "client" side)

Thanks for clarification - great work/crate!

@RustyJoeM RustyJoeM changed the title possibility to serialize/deserialize xml tags unchanged possibility to serialize/deserialize xml tags in strings unchanged Apr 7, 2022
@MarcAntoine-Arnaud
Copy link
Contributor

Hi @RustyJoeM ,

Sorry for the delay !
I think it can be possible to add an option in Deserializer.

@MarcAntoine-Arnaud MarcAntoine-Arnaud added the enhancement New feature or request label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants