'Angular get special characters from URL
I am using angular 10 and I have url which included a token. Something like : register-confirmation?token=ONPhEh1ANYTtd%252F42PPLLNaUovdIvy5a4NPZ5JmueDnyusF5TUn%252F0CQhIXdwv2vE
I have to capture the token so make an api cal from the app but if I used activated route, all instances of %25 from the token are replaced by %. I have tried using encodeURI and encodeURIComponent. I believe there is a decodeURI and decodeURIComponent as well. Which one will cover all scenarios of special characters that are part of the token in my url. Need help to fix this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
