The string "</script>" in JSON data would end the script element we're embedding the data in. To make sure the data doesn't disrupt the script, we escape the slash as \/ .
The string "</script>" in JSON data would end the script element we're embedding the data in. To make sure the data doesn't disrupt the script, we escape the slash as \/ .