Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

HTML Encoding/Decoding

DZone's Guide to

HTML Encoding/Decoding

·
Free Resource

 string temp = System.Web.HttpUtility.HtmlEncode("this is a test");
 temp2 = System.Web.HttpUtility.HtmlDecode(temp2);


p.s. first add reference to "System.Web"
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}