I have a value that I pass on to URL parameter the original value looks like this:
1436641259169/nDfmDmVa
when it gets passed on it converts it to this:
1436641259169%252FnDfmDmVa
So, how to do I convert it back when I pull it down?
I have a value that I pass on to URL parameter the original value looks like this:
1436641259169/nDfmDmVa
when it gets passed on it converts it to this:
1436641259169%252FnDfmDmVa
So, how to do I convert it back when I pull it down?
Share Improve this question edited Jul 18, 2015 at 6:57 teddybear123 asked Jul 18, 2015 at 6:47 teddybear123teddybear123 2,4246 gold badges25 silver badges40 bronze badges 02 Answers
Reset to default 14This may help you: decodeURIComponent
decodeURIComponent(string);
Example:
decodeURIComponent(decodeURIComponent("1436641259169%252FnDfmDmVa"))
> "1436641259169/nDfmDmVa"
I think this will help you to decode the url :
decode(content: string){
return decodeURIComponent(content);
}