Skip to content

Instantly share code, notes, and snippets.

@forced-request
Last active August 29, 2015 14:26
Show Gist options
  • Save forced-request/ada195f7b1b383c8a4a0 to your computer and use it in GitHub Desktop.
Save forced-request/ada195f7b1b383c8a4a0 to your computer and use it in GitHub Desktop.
htmlentities in JavaScript context
<html>
<body>
<script>
var a = '<?= htmlentities($_GET['p']); ?>';
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment