I\'m trying to send an XML document over the wire but receiving the following exception:
\"MY LONG EMAIL STRING\" was specified for the \'Body\' element. ---
byte[] toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(toEncode); string returnValue = System.Convert.ToBase64String(toEncodeAsBytes);
is one way of doing this
Can't the string be cleaned with:
System.Net.WebUtility.HtmlDecode()
?