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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top