I didn't realize this until now, but when using the CodeIgniter form validation class, if validation fails ($this->form_validation->run() === FALSE), all special characters in the post variables get converted, including any single or double quotes that were in the text inputs. Is there a way to turn off this behavior? I made pre-filling all forms in my project done with the html_escape command like so:
<input value="<?php echo html_escape($this->input->post('value'));?>" />
The html_escape ends up doing htmlspecialchars a second time, displaying the html entities in the form. I didn't set any rules to use "prep_for_form", and XSS is turned off, so I don't know why CI would choose to do this for me.
Also, I do know about the set_value function to pre-fill values, but in my case I'm doing something else that doesn't allow me to use that function.
Any help is appreciated.