Forum OpenACS Improvement Proposals (TIPs): Re: Tip#93: Add optional support to automatically remove smart quotes from textareas

This is a much needed feature. Especially since I find users draft stuff up in Word, then copy/paste into a blog for example.

It isn't just smart quotes that needs to be handled. I use the following regular expressions in a perl script to replace other smart stuff.

# Replace MS stuff.
$content =~ s/\342\200\230/'/g;
$content =~ s/\342\200\231/'/g;
$content =~ s/\342\200\246/.../g;
$content =~ s/\342\200\223/-/g;
$content =~ s/\240/|/g;
$content =~ s/\342\200\234/"/g;
$content =~ s/\342\200\235/"/g;

So dashes, dots, and pipes are also affected.