& symbol within filename doesn’t working
I didn’t get first time as it works with other files name who doesn’t contains & symbol. After some time I realized the cause of issue. I did some research how to fix but didn’t get satisfactory solution. Then I decided to encode the url, because once the url encoded it won’t encode & symbol as well. So that works like charm for me.
I just encode the url and add that url to my anchor tag. Here the code example
var url="mukeshsalaria & learnsharecorner.png"; var path = encodeURI(url); <a href=" + path + ">encoded path of image</a>
I hope it will help you guys.