I'm trying to insert data from a CKEDITOR into a mysql database with php, but I'm trying to capture that data through different modes that I found on the web, but I can not insert the CKEDITOR content in a field of the BD: htmlentities, htmlspecialchars, but I do not know how I can capture and insert that data. I leave the code I use, and if you could help me achieve it.
//Primero a través de un js guardo los datos:
var editor= CKEDITOR.instances['editor'].getData();
//y así envío el dato con ajax y metodo GET
Then in the PHP file, using the GET method to insert:
caracteristica_producto=$conexion->real_escape_string($_GET['editor']);