Here is the code for your reference-
var decodedString = decodeURIComponent( encodedString ).replace( /+/g, ' ' );
Here encodedString is the url encoded string received from PHP.
Its that simple!
If you have any other method, do share in comments.