An invalid XML character (Unicode: 0x13) was found in the element content of the document

Any thoughts on how to replace control characters in a string?

I was going for $address2.replaceAll($address2.findCharCode(13),"") or something like that. Any elegant solutions here? Is it possible to use a regular expression?

Brian, I have a proof expression somewhere in my pipelines for all invalid XML characters, but I have so many pipelines, I just can’t find it right now. However, I think I started with this StackOverflow post/answer as a base to get to what I needed.

1 Like