How To Remove html tags from validation_errors() in Codeigniter

How To Remove html tags from validation_errors() in Codeigniter

 

Remove html tags from validation_errors() in Codeigniter
Set the Opening tag and Closing Tags for error validation blank or anything you want to use.

//Forn Validation Error Html Tags removing.
$this->form_validation->set_error_delimiters('','');

Or

$this->form_validation->set_error_delimiters('<span>','</span>');

Leave a Reply

Your email address will not be published. Required fields are marked *