Home » FAQ » ASP.NET » Miscellaneous » How to convert a string to HTML format
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));
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with