Forms - Values being altered
Hi,
Whenever i try to save this
< ! -- test -- >
it will be converted into
& lt;!-- test --& gt;
Here's the code as seen on my model
$fields['page_content'] = array(
'label' => 'Page Content',
'comment' => 'Set the content of your page',
'type' => 'textarea',
'class' => 'no_editor');
Is it possible to disable the alteration and retain the values I've originally inputted?
Also tried to save this
< div style="color: red;">test</ div>
and it resulted to
< div >test</ div>
I hope the alterations can be disabled in a simple textarea field.
Comments
$config['modules']['my_module'] = array(
'preview_path' => '', // put in the preview path on the site e.g products/{slug}
'model_location' => '', // put in the advanced module name here
'sanitize_input' => FALSE,
);
It works fine now.
'sanitize_input' => array('template','php'),