How to produce the right output of the special character, & in json?

53 views Asked by At

I'm using IFTTT to post a video from a YouTube channel to a Discord server but the character that is in the title of the video didn't come out as it is. The character came out as & instead of the character &.

Thanks for the help, I appreciate it so much.

This is how I write the body:

{"content":"*{{Title}}*\n \n{{Url}}"}

This is the output:

From Alcoholic & Drug Addict to Following Jesus!
 
https://www.youtube.com/watch?v=q4pGhhabBbM 

I want it to come out as:

From Alcoholic & Drug Addict to Following Jesus!
 
https://www.youtube.com/watch?v=q4pGhhabBbM
1

There are 1 answers

1
Jakub Zieliński On

You should consider using \& and it should work. Basically use \ before each special character you want to use.