Convert HTML Codes

  • Thread starter Thread starter Jonathan
  • Start date Start date
J

Jonathan

Hi
I want to convert HTML codes ("!" , "#" , "$" , "%") to text
("!","#", "$", "%"). How can i do it without replacing one an one the codes?

Thanks in advance
 
Jonathan,

You can use the static HtmlDecode method on the HttpUtils class in the
System.Web namespace.

Hope this helps.
 
No, just use Server.HtmlDecode(string s), where 'string s' is the encoded
characters you need to decode.
 
Back
Top