I am in the process of developing a Facebook Quizbot using your API. Very good job on how simple you have set this up.
However, many a time, I come across encoding issues, like ", or & and so on…
I am a non-techie and I use Manychat platform to build the quizbot. I have been breaking my head for the past two days to get this problem fixed, but to no avail.
It will be great if you can decode the questions and answers…
The question, correct_answer and incorrect_answers fields are all encoded to ensure the JSON string returned is valid. This means characters that may escape the string, such as ", are converted to HTML entities, such as " by default.
Unfortunately, the API has no option for JSON escaped strings. This means you need to manually decode these fields before displaying them to the user.
I don’t know what Manychat allows for, as I’ve never used it, but you’ll need to decode these fields to get the human-readable equivalent. If there’s no function to decode HTML entities, you can change the encoding by adding encode=urlLegacy, &encode=url3986 or &encode=base64 to the end of your API URL. Maybe Manychat has a base64 decode function.