Redactor and smart quotes

Asked 1 year ago by Dave Sparks

I have a site set up to use redactor as an input field type. If someone puts a curly quote (or some other punctation types) it shows up a bit iffily on the front end - isn’t becomes isn’t It is saved into the content file with the quotation mark, so saved as isn’t But when it's output it breaks somewhere. I am outputting with smartypants {{ content|smartypants }} but from what I can tell smartypants works the other way and takes straight quotes to smart quotes, not ensuring smart quotes are properly displayed. I'm not sure of a full list that causes issues but double quotes do as well - “to kill a mocking bird” for example

Any ideas anyone? Anything I'm missing?

Follow 1 Reply