[ad_1]
.replace(/–/g, '–')
the g flag means global so it replaces all instances.
0
[ad_2]
solved How can I use regex to replace all $#8211; with – in javascript? [duplicate]
[ad_1]
.replace(/–/g, '–')
the g flag means global so it replaces all instances.
0
[ad_2]
solved How can I use regex to replace all $#8211; with – in javascript? [duplicate]