News for hackers. Stuff that matters.
Re:Show HN: This website is valid JSON by myfonj on Wednesday December 09, 2020 @07:24AM (#25357822)
Here is the trick in a datauri nutshell:

     data:text/html,{"data":"Hello.","whatever":"<script>onload=function(){document.body.innerHTML='<h1>'+JSON.parse(document.body.innerHTML).data+'</h1>'}</script>"}

There are no comments on this comment yet.