Live Chat Icon For mobile
Live Chat Icon

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));

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.