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?
This may help you: decodeURIComponent
decodeURIComponent(string);
Example:
decodeURIComponent(decodeURIComponent("1436641259169%252FnDfmDmVa"))
> "1436641259169/nDfmDmVa"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With