Skip to content

Instantly share code, notes, and snippets.

@HandyAndyShortStack
Last active August 29, 2015 14:02
Show Gist options
  • Save HandyAndyShortStack/407f3bac06caeac0186c to your computer and use it in GitHub Desktop.
Save HandyAndyShortStack/407f3bac06caeac0186c to your computer and use it in GitHub Desktop.
testing behavior of script tags in bob's browser
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="main.js"></script>
</head>
<body>
<script id="template" type="text/template">
<script type="text/javascript">
console.log("inline script");
</script>
<p>raw text</p>
</script>
</body>
</html>
$(function() {
alert(/raw/.test($('#template').html()));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment