so I have a box where a user enters some data "a description" and it stores in MySQL.
However, html tags such as <img src="">, <a href="">, etc. do not store there in the 'description' field. How can I allow certain HTML codes to be passed through to MySQL?
This is what the description input box looks like:
<?=form_textarea(
'description',
$Channels->description,
'class="field" style="width:306px; height: 70px; margin-left:5px;"'
)?>
This is where the form gets passed:
$this->form_validation->set_rules(
'description',
lang('user_edit_channel_description'),
'trim|required|strip_tags|xss_clean'
);
And then posted to MySQL here:
$rows['description'] = $this->input->post('description');