Archive of UserLand's first discussion group, started October 5, 1998.

Re: JavaScript HTML entity encoding/decoding functions

Author:Eugene Pervago
Posted:10/8/1999; 10:36:30 AM
Topic:JavaScript HTML entity encoding/decoding functions
Msg #:11866 (In response to 11861)
Prev/Next:11865 / 11867

escape() and unescape() deal with URL encoding, not HTML encoding. For example, unescape("A") (ASCII #65 is 'A') would do nothing. If you are in ASP use:

Simply export two subs that you can use in JScript:
 Response.Write(html_escape('...'));

Eugene Pervago
MyWebNews.com






This page was archived on 6/13/2001; 4:52:59 PM.

© Copyright 1998-2001 UserLand Software, Inc.