2016-05-01 benalpert.comPreventing XSS attacks when embedding JSON in HTMLTo prevent against this hole, you should replace every occurrence of </ in your JSON with <\/ so that the <script> tag remains open.