I\'ve come across an error in my web app that I\'m not sure how to fix.
Text boxes are sending me the long dash as part of their content (you know, the special long dash
There are three unicode long-ish dashes you need to worry about: http://en.wikipedia.org/wiki/Dash
You can replace unicode characters directly by using the unicode escape:
'—my string'.replace( /[\u2012\u2013\u2014\u2015]/g, '' )