This post will dive deep into the exotic script tag parsing rules in order to understand how they work and why this is the appropriate way to escape JSON.
What’s so gnarly about a script tag?
Script tags are used to embed other languages in HTML. The most common example is JavaScript:
... continue reading