Skip to content

Instantly share code, notes, and snippets.

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>
var s = document.getElementById('s').getAttribute('data');
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.