Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 022ad4a

Browse files
created encode filter
1 parent ee5deb5 commit 022ad4a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎src/encode.filter.js‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export function EncodeFilter() {
2+
3+
return encode;
4+
5+
6+
/**
7+
* URL-encode a string
8+
*
9+
* @param {String} input
10+
* @return {String} output
11+
*/
12+
function encode(input) {
13+
return window.encodeURIComponent(input);
14+
}
15+
16+
}
17+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /