Hi Krishnakant, I assume mark & spencer does not show up in the params["companyname"] since the & devides the next html parameter. So you should urlencode the user entered variabled before calling the controller. You could do this using javascript and the functions escape or encodeURI.
Kind regards Cornelius Am 28.07.2011 08:15, schrieb Krishnakant Mane: > Hello all. > I have a requirement where a pylons action controller gets data fromm > request.params["companyname"] and put it into an xml file at the > server side. > it has many other fields but here I am just making things simple. > Now my problem is that when user enters special characters such as &, > for example "mark & spencer " then the code fails. > Obviously I think somewhere we need to convert this into cdata. Is > there some way in which I instruct the request to send the values in > cdata? > Happy hacking. > Krishnakant. > ps: > I am sorry if this is not really a pylons issue, if so please treat > it as off topic. > >
signature.asc
Description: OpenPGP digital signature
