Remove Quotes from Text Fields My client needs to input apostrophes in text fields for staff names, such as &rsquo; or just the plain ' and as you can imagine, it is causing issues.

I have tried this replace({'\'',''}) and this replace({'\&amp;rsquo;',''}) but to no success. Thoughts?
As it happens, this solved my issue: {{ personfirstandlastname|replace({'\'':''}) }}

EDIT

To clarify, this isn't a valid Twig object:

{'\'',''}


... while this is:

{'\'':''}