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

JsString.encode() escape characters #132

Open
ambrusadrianz opened this issue Nov 7, 2019 · 1 comment
Open

JsString.encode() escape characters #132

ambrusadrianz opened this issue Nov 7, 2019 · 1 comment

Comments

@ambrusadrianz
Copy link

with (tEncoder) { T.encode() } outputs invalid Json if the value contains a multiline string/string with quotes/etc.

Escaping of special characters should be done in the JsString encoder. This is a pretty major issue, I think. I'm eager to help with a PR if needed.

@raulraja
Copy link
Contributor

raulraja commented Nov 8, 2019

@ambrusadrianz please feel free to send a PR with your suggestion. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants