Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippet, a safe place to store your data
<var id="s" data="surprise!</script><script>alert(&quot;whoops!&quot;)</script>"></var>
<script>
var s = document.getElementById('s').getAttribute('data');
console.log(s);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.