Posted by Martin Honnen on 04/27/07 15:05
Martin Honnen wrote:
> PHP has addslashes e.g.
> var jsfoo = "<?php echo addslashes($phpfoo); ?>";
> that should help
No, it does not help (as it does not esape \n), seems a regular
expression replacement is needed.
--
Martin Honnen
http://JavaScript.FAQTs.com/
Navigation:
[Reply to this message]
|