[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

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
0
the_bachelor
Asked:
the_bachelor
  • 2
1 Solution
 
ZylochCommented:
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now