How to convert a string to HTML format

Platform: ASP.NET|Category: Miscellaneous

Use namespace System.Web.HttpUtility
VB.NET

Dim mystring as string =”Tom & Jerry”
Response.Write (HttpUtility.HtmlDecode (mystring))

C#

string mystring=”Tom & Jerry”;
Response.Write (HttpUtility.HtmlDecode (mystring));