csharp Html Encode

//note: add Reference to System.Web DLL within Project

using System.Web;
string EncodedString = HttpUtility.HtmlEncode("my string");

//or
string EncodedString = System.Web.HttpUtility.HtmlEncode("my string");
Html Encode a string.

Updated: Wednesday 6th April 2011, 00:42pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.