First, when reading user input you should make sure it's the correct type. The Input/Filter APIs don't handle array/string conversion. So if you're expecting STRING filter to return a string be aware ...
This may be an issue with the filter value, either in the field plug-in settings, or in the settings.
The editor field type has four options for filter:
Perhaps try setting the ...