Closed
Description
hello i use this function form_input from the form helper like this, i don't know what i am doing wrong and don`t know if this is a bug or not but please test this.
$input_attrs = array();
$input_attrs['name'] = 'contact_name';
$input_attrs['type'] = 'text';
$input_attrs['value'] = set_value('contact_name');
echo form_input($input_attrs);
and when i put this value in the input
<script>alert("test")</script>
it returns this :
&lt;script&gt;alert(&quot;test&quot;)&lt;/script&gt;
instead of :
<script>alert("test")</script>
But when i use without the form_input function and use it like this
<input type="text" name="contact_name" value="<?=set_value('contact_name')?>">
it returns good escaped data
<script>alert("test")</script>
Activity