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 d5d72a8

Browse files
Switched to the correct method
1 parent 610f8b3 commit d5d72a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Angular URL-Encode Filter
22

3-
A simple Angular filter to encode or decode a string using `encodeURIComponent` and `decodeURI`.
3+
A simple Angular filter to encode or decode a string using `encodeURI` and `decodeURI`.
44

55
[**Demo on Plunker**](http://plnkr.co/edit/oPJZWt?p=preview)
66

‎src/encode.filter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function EncodeFilter(
1313
* @return {String} output
1414
*/
1515
function encode(input) {
16-
return $window.encodeURIComponent(input);
16+
return $window.encodeURI(input);
1717
}
1818

1919
}

0 commit comments

Comments
(0)

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