Forum OpenACS Development: Re: Best practices for "Smart Quotes"?
In general, tidy is still very helpful to clean up wierd input. e.g. "tidy ... -b ..." strips smart quotes and em-dashes.
I do recall now I have used Tidy before. Can I just call it from a shell script? Is that the easiest way. It shouldn't be called that much as there are not that many editors in this application.
set cleanText [::xowiki::tidy clean $text]it should be straightforward to modify this for your needs.