I have a problem with backslash in strings.
When i create a string with this code:
let url = webProtocol + siteHost + "/tables/coupon?$expand=source&$filter=Source/Name eq '" + category + "'&" + siteApi
I expect this URL
https://swoup.azurewebsites.net/tables/coupon?$expand=source&$filter=Source/Name eq 'Recommended'&ZUMO-API-VERSION=2.0.0
But I get this
https://swoup.azurewebsites.net/tables/coupon?$expand=source&$filter=Source/Name eq \'Recommended\'&?ZUMO-API-VERSION=2.0.0
I tried to delete them using
stringByReplacingOccurrencesOfString("\\", withString: "")
But it doesn't help. Also I tried to add backslash before the ' but it doesn't help.