Disallowed characters in Javascript

4 replies
I am using some javascript which displays user-inputted text in a special way.

The problem is, that certain characters (such as ') mess up the script.

Rather than just disallow certain characters, I would prefer to allow all so thought to do this by converting ascii chars. However, even when converted, it still messes up the script.

I am using ASP, although not sure if this has relevance.

Any suggestions?

Thanks,

Ben Shaffer
#characters #disallowed #javascript

Trending Topics