I'd like to use htmlentities as part of my CI validation/prepping process. CI says I can use any function that accepts 1 parameter, like htmlentities. However, I actually need to use it this way:
htmlentities($foo, ENT_COMPAT, 'UTF-8');
Meaning, I need to pass it flags and an encoding. Is there a way I can make this part of CI validation without trying to create a callback?