We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610f8b3 commit d5d72a8Copy full SHA for d5d72a8
README.md
@@ -1,6 +1,6 @@
1
# Angular URL-Encode Filter
2
3
-A simple Angular filter to encode or decode a string using `encodeURIComponent` and `decodeURI`.
+A simple Angular filter to encode or decode a string using `encodeURI` and `decodeURI`.
4
5
[**Demo on Plunker**](http://plnkr.co/edit/oPJZWt?p=preview)
6
src/encode.filter.js
@@ -13,7 +13,7 @@ export function EncodeFilter(
13
* @return {String} output
14
*/
15
function encode(input) {
16
- return $window.encodeURIComponent(input);
+ return $window.encodeURI(input);
17
}
18
19
0 commit comments