Forum OpenACS Development: Re: Best practices for "Smart Quotes"?

Collapse
Posted by Dave Bauer on
Thanks,

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.

Collapse
Posted by Gustaf Neumann on
Dave, have a look at xowiki-utility-procs.tcl [1]. it contains a function callable like in:
 set cleanText [::xowiki::tidy clean $text]
it should be straightforward to modify this for your needs.

-g
[1] xowiki::tidy