timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
809 stars 326 forks source link

Unable to pass ampersand to finding API #319

Open socstur opened 4 years ago

socstur commented 4 years ago

Anybody know how to pass the ampersand sign. I need to do a search for ex. "AT&T" as string but he sdk is throwing an error.

filippodipaola commented 4 years ago

try AT&T

socstur commented 4 years ago

Thank you! It is working with 'AT&T'

bushjt987 commented 4 years ago

There is actually an argument you can pass when creating your Connection object; escape_xml=True which will escape all the symbols properly: https://github.com/timotheus/ebaysdk-python/issues/129#issuecomment-675529050

I would suggest this be changed to default in the library. I don't see why you wouldn't want to escape the xml in most use cases.