Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Smart quotes

Go to End



Community Member, 24 Posts

21 March 2011 at 12:36pm


I'm looking for a solution for SS, where any inch characters ' and double primes are replaced with proper quotes:

Wordpress has a function called texturize:

I know I could do a string replace at onbeforewrite, however I also want to effect content from TinyMCE which obviously has html quotes which I don't want to touch.

So unsure if I should do str_replace for just title, or if I should add to tiny_mce_improvements.js or if there's some profanity filter I could use globally.

Thoughts anyone?