Skip to content

Instantly share code, notes, and snippets.

@suvene
Created January 4, 2009 15:26
Show Gist options
  • Save suvene/43073 to your computer and use it in GitHub Desktop.
Save suvene/43073 to your computer and use it in GitHub Desktop.
(function(cdata){
var s = document.createElement("script");
s.type = "application/javascript;version=1.7";
s.textContent = cdata.toString();
var head = document.getElementsByTagName("head")[0];
head.appendChild(s);
head.removeChild(s);
})(<><![CDATA[
// do somthing.
]]></>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment