c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
.Net

How to decode HTML character code in c#?

| | ASP-NET , CSharp
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