Validation Rules for Email CodeIgniter version 3.17

I am used to CodeIgniter .

I just started to working in CodeIgniter 3.17, and reached to validation rules.

I notice that xss_clean is now gone from the validation class, so what rules should I use in the validation of email ?

$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');

For More Visit Codeigniter website :

Form validation using jQuery in php

## form validation in JQuery <script type=”text/javascript”> $(document).ready(function(){    $(‘#send_enquiry’).click(function(){ var get_validate = validateForm();        console.log(get_validate); if(get_validate>0){    return false; }else{    return true; } }); function validateForm(){   var facedError = 0;   var nameReg   = /^[A-Za-z]+$/;   var numberReg =  /^[0-9]+$/;  var emailReg  = /^([\w-\.][email protected]([\w-]+\.)+[\w-]{2,4})?$/;   var names     … Read moreForm validation using jQuery in php