Reputation: 584
I am using Full package of ckeditor and here i am facing a strange problem from 2 days. Everything is working fine but font-size
is not working at all . when I select a line and change it's font size, it shows the correct code in source mode:
<span style="font-size:9px">My selected line</span>
but when i save this result in database it converts this line to something like below.
<span xss=removed> My selected line</span>
I am using CodeIgniter and not using any special function before saving my data. just using post
function of CI.
Upvotes: 2
Views: 619
Reputation: 63
$this->input->post($ck_editor_contents, false); and remove below link when data insert and update case $posted_data = $this->security->xss_clean($posted_data)
you can also use other method editor content
$where = "products_id = '".$res['products_id']."'";
$posted_data2 = array('products_description'=>$this->input-post('products_description',false));
$this->product_model->safe_update('wl_products',$posted_data2,$where,FALSE);
Source
Upvotes: 0
Reputation: 5506
$this->input->post($ck_editor_contents, false);
This one disable the post filtering and save all to the DB.
Upvotes: 1
Reputation: 785
Seems like codeigniter cleans your html against XSS attacks.
Use it with caution:
$this->input->post('html', false);
The second parameter will disable the XSS filter.
Upvotes: 5