How to Encode Quotes in PHP for API
I'm using PHP to create a new event via the API just fine. However if the Name of the event has single or double quotes or an ampersand sign, these get converted to utf8 unicode in the published WA event. I can't figure out what PHP encoding WA needs in the POST/PUT for the Name to get a properly decoded result in the WA admin. I've tried htmlentities(), htmlspecialchars(), and json_encode() to no avail.
1
vote
Dan Brellis
shared this idea