Maybe:
document.getElementById("input").value.replace(String.fromCharCode(150), "–");
Ross
2010-03-09 20:02:49
Maybe:
document.getElementById("input").value.replace(String.fromCharCode(150), "–");
Use its Unicode code point in a pattern literal
document.getElementById("input").value.replace( /\u2013/g, "–");