Posted by -Lost on 04/27/07 15:38
Martin Honnen wrote:
> 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.
Huh? addslashes would yield a\\nb\\nc. That is effectively escaping
newlines is it not?
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Navigation:
[Reply to this message]
|