[eluser]CroNiX[/eluser]
From the manual: Note: You can also use any native PHP functions that permit one parameter, like trim, htmlspecialchars, urldecode, etc.
So, you should just be able to add it as a rule.
Code:
$this->form_validation->set_rules('customer', 'Customer', trim|required|strip_tags|xss_clean');