Not running a regular expression to remove special characters in JS, what's wrong?
Why doesn't this design ? While in php everything is fine 0_o
"& ".replace('/&.*;/', ");
asked July 9th 19 at 11:20
You have the regular expression in quotes, that is is searched for a substring.
"& ".replace(/[&.*;]/g, ");