JSFiddle - React, Tailwind, and code Playground

by mgibsonbr

HTML

<script>
    function foo() {
        alert("this will not run");
        var str = "abc%0A</script><script>function foo(){alert(/xss/)//";
        alert("this will");
    }
    foo();
</script>