Hello,
I am making a simple form but I'm getting special chars in my input with the functions form_input() and form_textarea()...
like ' for hyphens... I enter an array inside it as
Code:
$message=['name'=>'message', 'id'=>'message', 'value'=> set_value("message",$form_message), 'row'=>'10', 'style'=>'height:100%'];
echo form_textarea($message);
I don't succed escaping htmlspecialchars... If I put "I don't" in my field, I get "I don't" in my textarea while I've got no problem if I don't use the functions form_input() and form_textarea().
How can I fix this ? Do I have to escape this char with addslashes() somewhere ? or remove it by adding something ?
Thank you for any help