Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
Created April 29, 2015 02:57
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 JavaScript-Packer/1041ab1abd0229e6bd28 to your computer and use it in GitHub Desktop.
Save JavaScript-Packer/1041ab1abd0229e6bd28 to your computer and use it in GitHub Desktop.
Extreme escape for JavaScript code by every character
function octal(П){
return П.replace(/./g, function(e){
return "\\"+e.charCodeAt(0).toString(8);
});
};
alert(octal("JavaScript Packer"));
//extreme JavaScript escaping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment