As unescape
has been deprecated I have chosen decodeURIComponent
, but it doesn't work as expected . decodeURIComponent
cant decode the following URI component
Coast%20Guard%20Academy%20to%20hold%20annual%20Women%92s%20%91Leadhership%92%20event
While decoding the above string decodeURIComponent throws an error, which blocks the remaining javascript execution.
Is there is any solution to fix this ?