Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
:javascript
function write_script() {
document.write('\x3Cscript type="text/javascript" src="foo.js">\x3C/script>');
}
write_script();
<!-- haml illegal_nesting.haml -->
<script type='text/javascript'>
//<![CDATA[
function write_script() {
document.write('\x3Cscript type="text/javascript" src="foo.js">\x3C/script>');
}
write_script();
//]]>
</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.