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