I am working with some XML that holds strings like:
This is a string
Some of the strings that I am passing to the
Anyone tried this System.Security.SecurityElement.Escape(yourstring)? This will replace invalid XML characters in a string with their valid equivalent.
System.Security.SecurityElement.Escape(yourstring)