I have a problem to retrieve the content of CKEditor (html content and save this data in a docx)
I do first in js: CKEDITOR.instances.editor1.getData () in order to retrieve the html data from CKEditor.
Then, in php, I do:
$docx = new Phpdocx \ Create \ CreateDocx ();
$docx-> embedHTML ($ html);
docx-> createDocx ($ root.'array _ '. $ country_code);
BUT the output is written literally in html, and therefore in the docx is written in html code, without having been interpreted.
How do I save CKEditor data correctly?
Thanks for your help