Posted by Toby A Inkster on 04/27/07 15:40
Martin Honnen wrote:
> PHP has addslashes e.g.
> var jsfoo = "<?php echo addslashes($phpfoo); ?>";
In this case, addcslashes($phpfoo) would work better.
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|