I am sending a JSON encoded POST parameter, using the javascript
function JSON.stringify, to the pylons application and I am getting
strange webobi behaviour.

If is send '{"arg": "this is a string"}' everything works fine
If is send '{"arg": "this is a string with a \" inside"}' everything
works fine as well.
but the webob layer does not handle correctly the following:
'{"arg":"this is a string <span style=\"font-family: Arial, Helvetica,
sans-serif; \">with </span>a span."}'

The error is clearly seen in the webob_parsed_post_var which is:
(MultiDict([('arg', '{"field":"text","value":"This is a string <span
style=\\"font-family: Arial,Helvetica,sans-serif'), ('\\">with </
span>a span"}', '')]), <FakeCGIBody at 0x11ec6690 viewing
MultiDict([('ar...'')])>)

Actually it splits the string at the semi-colon after 'sans-serif'.
If I leave out the semi-column, web-ob works again ( but my
application does not)

Any help?

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

Reply via email to