How to remove apostrophe from the input text filter

Continuing the discussion from How to remove apostrophe (') from input text filter value?: