jo schrieb:
> I'm using the TGWebservices library, I see when I use tg_format to have 
> data in json format
> it inserts a backslash before every slash as in the above esample:
> 
> {"result": [{"descrizione": "alimenti O\/A (432\/98"}]
> 
> and this is the real data in the db:
> 
> {"result": [{"descrizione": "alimenti O/A (432/98"}]
> 
> Is there a way to tell TGWebservices to not insert those backslashes?

These have been inserted by simplejson or security reasons, because if 
you include JSON literally in a <script> block, then an attacker could 
infiltrate his own code using a string like '</script><script>'.

The backslashes before the slashes should normally not matter, why are 
they a problem for you?

-- Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to