How to handle ‘&’ in url using JS [duplicate]

I have this URL:

http://example.com/analytics?id=25841&url=https://example2.com/cart/update?updates[26183454736]=1&discount_price=$6.70&title=Josh%20&%20Sue%20Spicy%20Mango%20Chutney%20280g&image=https://cdn.shopify.com/s/files/1/0300/9305/products/image_2e5b74ce-d7d9-48ef-9446-7fec6920211f.jpg?v=1591178270&width=182&height=190&idu=26183454736&price_before=

I need to take parameters using JS so I write:

var urlSearchParams = new URLSearchParams(url);
            var params = Object.fromEntries(urlSearchParams.entries());
            console.log(params);
            var productId = 0;
            var productIdu = params.idu;
            var productName = params.title;
            var price = params.discount_price;
            var image = params.image;
            var currency = params.price_before;

but for productName I get just string ‘Josh ‘ and I cant get the full string because full string contain ‘&’ …

How to solve that?