there's one method at javascript helper something like "safe_string" .
it adds slashes to the string,
then you can do a $('element').value = "<? echo $value?>"

It will be replaced by $('element').value= "my\nvalue".


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to