html entity encode/decode

  • Thread starter Thread starter Dazza
  • Start date Start date
D

Dazza

G'day,

I've got an application that builds a URL string from user input (textboxes
etc). I need to replace all special characters to the HTML entity thingies
(like "$" to "%24").

Is there an easy way to do this without a huge list of the String.Replace
method for every character? Is there something in the .NET framework that
will do this conversion, or a class you know of?

Many thanks,
MrQuan
 
Back
Top