May be some of us try to write custom replace methods to clean any invalid XML characters from our xml strings. Well, System.Security namespace has the Escape method built-in which does the same for us. Check it out at MSDN - Escape method. The code would look like:
tagText = SecurityElement.Escape(tagText);
Love coding!
Azure Service Fabric 6.5 Refresh Release
7 years ago
1 comment:
Thanks. Just what I needed!
Post a Comment