php - strip_tags() function is not working during insert records in Codeigniter -


i inserting register details of user through codeingniter strip_tags() not working in codeigniter. code -

$u_name=strip_tags($this->input->post('username')); // strip not working $data = array(     'user_name' => $u_name ); $this->db->insert('table', $data );  

if can't please me option strip html tags. in advance.

okay try if works or not:

$string = htmlentities(trim($string), ent_quotes, 'iso-8859-15'); 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -