I have the following code:
var msg = "Research & Analysis",
decoder = decodeURIComponent(msg);
console.log(msg);
console.log(decoder);
Can someone please help me understand why the decodeURIComponent(msg); is not actually decoding the & in the string?
I am expecting it to return something like Research & Analysis instead of Research & Analysis