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

Why the method text.trim() is used on all parser.textNode values in ontext method? #610

Open
Apkovy opened this issue Aug 16, 2023 · 0 comments
Labels

Comments

@Apkovy
Copy link

Apkovy commented Aug 16, 2023

In soap response there are whitespaces in element content.

I want them to be preserved, but from the code in strong-soap it seems that the text.trim() method is hardcoded.
It does not accept any options.

Specifically I have an element like this and i need the multiple whitespace to be preserved:

<element> </element>

/src/parser/xmlHandler.js:

p.ontext = function(text) { text = text && text.trim(); if (!text.length) return; ... }

Thanks for your reply.

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

No branches or pull requests

2 participants