Converting/Rendering HTML Special Characters.

Here my concern folx:
is there a function in ASP/VB.NET or elsewhere that will render special HTML characters.
Basically i'm looking for a magic fuction that will  return "shanté & Mórris"
when MagicFunction ("shanté & Mórris") is called.
I hope you get the idea...

holler
LVL 7
the_bachelorAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ZylochConnect With a Mentor Commented:
Hi the_bachelor,

I'm a PHP programmer that just loves to use htmlentities(), but I did a quick search on Google. From http://forums.asp.net/thread/892355.aspx, we can see that you can use

Server.HtmlEncode("string")

if you have ASP.NET

I don't know if there is anything native like that for ASP itself though...

Regards,
Ted
0
 
the_bachelorAuthor Commented:
Sweet Deal. Works like a charm
0
 
the_bachelorAuthor Commented:
Just in case anybody would land on this. I was looking for Server.HtmlDecode("string").
many thanks to Zyloch
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.