I tried: (If all the slashes make it difficult to read, the 1st line should replace the slashes, the second line should replace the backslash, the 3rd line should replace the asterisks.
newbigbend = bb_val.replace(/\//gi,"");
newbigbend = bb_val.replace(/\\/gi,"");
newbigbend = bb_val.replace(/*/gi,"");
to replace all slashes, backslashes, and asterisks. But when the browser hits the middle line newbigbend = bb_val.replace(/\\/gi,"");, it considers its inexhaustible comment. I know to use escape to replace the slash. Not sure you'll be back.
source
share