How to safely escape JSON inside HTML SCRIPT elements 86 points by dmsnell·478 days ago·sirre.al·Show in HN
> Not so fast, things are about to get messy
That ship sailed several paragraphs ago, when <script> got special treatment by the HTML parser. Too bad we couldn't all agree to parse <![CDATA[...]]> consistently, or, you know, just &-escape the text like we do /everywhere else/ in HTML.