Hey guys,

I need a JavaScript escape function.  Let's say I have a variable, and
I'm generating some JavaScript from Cheetah:

    var s = "$s";

I need to make $s safe:

    var s = "$javascript_safe($s)";

Has anyone coded this yet?  Will the same function work for both
single and double quoted strings?  Can I steal some code?

Thanks :-D
-jj

-- 
I have decided to switch to Gmail, but messages to my Yahoo account will
still get through.
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to