Skip to content

Instantly share code, notes, and snippets.

@forced-request
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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