eZ Community » Blogs » Dave Fearnley

Member since: 27/08/2015

Blog entries
  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Automating “curly” quotes in rich text fields

Thursday 02 May 2019 09:14

by Dave Fearnley  | 0 comments

One of our clients recently came to us with an interesting problem. When end users type content into a rich text field, double quotes, single quotes and apostrophes are not “smart.” That is, the quotes and apostrophes are straight instead of curly — typographically speaking, they are inch and feet characters.

An editor might type this:

  • J. R. R. Tolkien wrote "The Lord of the Rings," a trilogy of novels that serve as a sequel to Tolkien's "The Hobbit."

But really want this:

  • J. R. R. Tolkien wrote “The Lord of the Rings,” a trilogy of novels that serve as a sequel to Tolkien’s “The Hobbit.”

Here's how we created a script to automate search and replace for curly quotes and implemented an easy-to-use button in the client’s CMS to run the task.

You must be logged in to track the activity of this blog!

Proudly Developed with from