Jump to:

23355 Posts in 17691 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Smart quotes

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

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

Page: 1
Go to End
Author Topic: 780 Views
  • DNA
    Avatar
    Community Member
    24 Posts

    Smart quotes Link to this post

    Hi,

    I'm looking for a solution for SS, where any inch characters ' and double primes are replaced with proper quotes: http://blogs.sitepoint.com/whats-so-smart-about-those-quotes/

    Wordpress has a function called texturize: http://codex.wordpress.org/Function_Reference/wptexturize.

    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?

    780 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.