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

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

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

Please submit your question and answer.