I found out about a neat function which can escape the XML content.
InnerXml = System.Security.SecurityElement.Escape(stringtoescape);
InnerXml = System.Security.SecurityElement.Escape(stringtoescape);
A simple inbuilt class like this can save you some time in trying to write your own function.
No comments:
Post a Comment