ah- echo stripslashes($javascript->object($data));
seems to do the trick
unless there is a better way?
On Nov 7, 9:09 am, mlecho <
saltlessbr...@...> 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
cake-php@...
To unsubscribe from this group, send email to
cake-php+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en-~----------~----~----~----~------~----~------~--~---