yourString.replace("&", "u0026") // or if you want to use it in backend, do like this yourString.replace("&","u0026") // and in the backend just replace it with "&" again