.Net

How to decode HTML character code in c#?

How to decode HTML character code in c#?, someone asked me to explain?
In this tutorial I will show you how to decode HTML character (eg: &amp,")  in c#. Here, my string values contains HTML characters. But I need to convert to normal plain text.

Decode HTML characters in c#:
string mystring = "Question & Answers";
string a = System.Web.HttpUtility.HtmlDecode(mystring);

Result:

Question & Answers 

Post your comments / questions