Posted on 2004-08-09
I'm trying to write a validation script that takes the information in the "Description" field and replaces any "smart quotes" with a standard single apostrophe. The tool is used by those that typically save paragraphs from Microsoft Word and these "funky" apostrophies are causing the application to crash. Any thoughts?
here's my current code:
strDescription = String( theForm.Description.value )
_re = /’/gi;
strDescription = strDescription.replace( _re, "'" );