I am using summernote WYSIWYG editor. From the editor I am taking the html onkey up and putting into the textarea form field as below :
HTML :
<div class="summernote">
<textarea rows="1" name="content" id="content" class="required">
<?= (isset($object))? $object['content']:set_value('content')?>
</textarea>
</div>
JAVASCRIPT :
var content= $('#content').eq(0).code();
$('#content').html(content);
form.submit();
The http request header's form data section shows content is there with complete editor's data but in essence I'm getting it in the $_POST['content'] as empty string; content="";
Can anyone please help to find what wrong am I making here and WHY Is this happening?
EDIT : After researching a while I have found out that the problem is being caused by codeigniter input class. In this class a method named clean_string() is cleaning off the special charectars (Bengali in my case) before it reaches to the controller!
So I'm just required to escape POST cleaning up in this case only to do it up! Can anyone help please?