You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rai...@googlegroups.com
Hi,
How to prevent raintpl replacing quote with " (html entities) for json string decoded using php json_decode() ?
In html template (js) :
var data = {$json_data}; ---> this should be [{"field":"value"}] not [{"field":"value"}]
Thanks.
Rain
unread,
Oct 24, 2013, 5:39:44 PM10/24/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rai...@googlegroups.com
Arief just disable auto_escape
Tpl::configure("auto_escape", false);
Arief
unread,
Oct 24, 2013, 7:59:03 PM10/24/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rai...@googlegroups.com
Hi Rain,
Thanks for your reply. In my case only json data that need to be unescaped, the rest in the html file should keep being autoescaped. How to get around this?
Regards,
Rain
unread,
Oct 29, 2013, 1:00:20 AM10/29/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rai...@googlegroups.com
then you can use the {auto escape} {/auto_escape} tags: