<textarea name="email_message" id="email_message" cols="65" rows="15"><?php echo trim($entry['message']);?></textarea>
When I update with above html code it make twice of blank line which contain in message.
eg :
Dear Sir
(here is one now now)
How are you?
when it update to database it save like :
Dear Sir
(here is two lines)
How are you?
It increase blank line in every save.
PHP code is here :
function email_template_save()
    {
        $content = $this->input->post('email_message');
        $this->load->model('templates');
        $data['msg']=$this->templates->update_email_template($content,$this->session->userdata('username'));
        $data['main_content']='message';
        $this->load->view('template',$data);
    }
function update_email_template($content,$username)
    {
        $data=array(
            'message'=>$this->input->post('email_message'));
            $this->db->where('username', $username);
            $this->db->update('email_format', $data); 
            return 'Successfully Updated';
    }