class CI_Table
$function = NULL
Allows you to specify a native PHP function or a valid function array object to be applied to all cell data. $this->load->library('table');
$this->table->set_heading('Name', 'Color', 'Size');
$this->table->add_row('Fred', '<strong>Blue</strong>', 'Small');
$this->table->function = 'htmlspecialchars';
echo $this->table->generate();
In the above example, all cell data would be ran through PHP’s htmlspecialchars() f