Search code examples
c#stringwindows-phone-7html-encode

How can i convert an html encoded string to a normal string?


how can i convert an html-encoded string like the one below to a normal string? (it's Hello World)

mystr="Hello World";

i am using Windows phone sdk.


Solution

  • here another way to do it

     string  mystr = "Hello World";
            var arr = mystr.Split(';');
            string newMStr = string.Empty; 
            foreach (var s in arr)
            {
                string newS= s.Remove(0, 2);
               newMStr+= Convert.ToChar(int.Parse(newS));
            }
    
             //Print  NewMstr