$this->input->xss_clean(); In codeigniter 2.0, you will need to modify $this->input->xss_clean() to $this->secuirty->xss_clean(). Otherwise, it won’t work. Of course, don’t forget to load ‘security’ library before you use the function. extends Controller or extends Model You will need to change class Test extends Controller to class Test extends CI_Controller And class Test extends Model to class…