Solved

Converting/Rendering HTML Special Characters.

Posted on 2006-06-20
3
299 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:the_bachelor
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 75 total points
ID: 16946587
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
 
LVL 7

Author Comment

by:the_bachelor
ID: 16946991
Sweet Deal. Works like a charm
0
 
LVL 7

Author Comment

by:the_bachelor
ID: 16955488
Just in case anybody would land on this. I was looking for Server.HtmlDecode("string").
many thanks to Zyloch
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question