ah- echo stripslashes($javascript->object($data));
seems to do the trick
unless there is a better way?

On Nov 7, 9:09 am, mlecho <[email protected]> wrote:
> hi, i am using the javascript helper to generate JSON feeds. It works
> great, except for one thing...if a json property has  a value that is
> an absolute url, cakephp wants to escape all the slashes...exampe:
>
> {"flag_img":"http:\/\/www.website.com\/themes\/images\/country\/
> countryimage.png"}
>
> how can i get that url without escapes? I just need it as a straight
> string.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to