I use CodeIgniter and in the edit form I pull the data from the database. Sometimes these data contain apostrophes, ampersands, etc.
How can I get CI to not parse this and change it into an HTML version so that end users can edit it.
This is an image of an edit form, this text field contains data pulled from the database and filled in the input text box. The data does not contain special characters, as you can see in the second image below.

Here is a screenshot of how the data looks in the table, note that I'm just pulling from the rightmost column. Not the fourth column:

As you can tell, the data is not saved as converted html, but CI still converts it.
:
<?php
$companyname = array(
'name' => 'companyname',
'placeholder' => 'Enter Your Companies Name',
'id' => 'companyname',
'value' => set_value('', $points['pointFields']['companyname']->uf_fieldvalue),
'maxlength' => 80,
'size' => 30
);
<div class="_100">
<p><?php echo form_label('Company Name', $companyname['id']); ?><?php echo form_input($companyname); ?></p>
<?php echo form_error($companyname['id']); ?>
</div>
:
function addUserFieldHtml($compiledHtml){
foreach ($compiledHtml as $cHK => $cHV){
$data = array (
'pointid' => $cHV['pointId'],
'timestamp' => time(),
'html' => $cHV['html'],
'fieldid' => $cHV['fieldId'],
'fieldvalue' => $cHV['fieldValue']
);
$this->db->insert('userfields', $data);
}
}