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

How to escape/de-descape with Serde #720

Open
phdavis1027 opened this issue Feb 27, 2024 · 1 comment
Open

How to escape/de-descape with Serde #720

phdavis1027 opened this issue Feb 27, 2024 · 1 comment
Labels
enhancement help wanted serde Issues related to mapping from Rust types to XML

Comments

@phdavis1027
Copy link

Sorry if I'm spamming with question; my project involves implementing a very complicated XML-encoded protocol so y'all will likely be hearing a lot from me lol.

I just now started sending messages that require escaping and was surprised to find that se::to_string doesn't escape " or ' (I haven't tried other characters) by default. Is there a way to enable this or will I have to get into more low-level APIs for this?

@Mingun Mingun added enhancement help wanted serde Issues related to mapping from Rust types to XML labels Feb 28, 2024
@Mingun
Copy link
Collaborator

Mingun commented Feb 28, 2024

Settings for configuring serialization behavior does not exposed yet for Serializer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted serde Issues related to mapping from Rust types to XML
Projects
None yet
Development

No branches or pull requests

2 participants