Instantly share code, notes, and snippets.

Embed
What would you like to do?
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