This should be really easy. I have a string that i escape like the following:
string originalString = "M&M";
string escapedString = System.Security.SecurityElement.Escape(originalString);//M&M
Good so far
string unEscapedString = System.Security.SecurityElement.FromString(escapedString).Text;
Expecting to go back to M&M but getting "object not set"
Assuming string should be in xml format so any help on what i should do in this case would be helpful.