0

I have following string

"The quic\b\b\b\b\b\bk brown fo\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007x... [Beeeep]"

But xmlBuilder and xml2js fails to parse this string due to these characters \b and \u0007. How can allow these characters i also allow { allowSurrogateChars: true }) for xmlBuilder

1 Answer 1

1

\b and \0007 aren't surrogate characters. They aren't allowed in XML 1.0 (see "Character Range" in the XML Specification). It might be possible to include them in XML 1.1 (See "RestrictedChar" in the specification), but I'm not sure how it's supported by the XML Builder.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.