Preventing XSS attacks when embedding JSON in HTML
To prevent against this hole, you should replace every occurrence of </ in your JSON with <\/ so that the <script> tag remains open.
Source: benalpert.com
Links relevant to my work and interests: IT, agile, startups, Internet, web development, databases, programming, design patterns, work motivation... (Popular topics)