Skip to content

Instantly share code, notes, and snippets.

@mas3
Created April 1, 2013 14:59
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 mas3/5285408 to your computer and use it in GitHub Desktop.
Save mas3/5285408 to your computer and use it in GitHub Desktop.
URLエンコード(「スクリプト実行」用スクリプト)
/*
* URLエンコード
*
* 「スクリプト実行」用スクリプト
* http://books.ivory.ne.jp/execscript/
*/
var lines = data.split("\n");
var outdata = new Array();
for (var i = 0; i < lines.length; i++) {
outdata.push(encodeURIComponent(lines[i]));
}
return outdata.join("\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment