Hello,
I can not solve my problem with the footer, here below the exact code that worked under 3.7
Can you hear me turn to operate under 4.0
$htmlFooter = $text_entete_pied_ou_contenu;
$htmlFooter = htmlspecialchars_decode($htmlFooter);
$footer = $docx->embedHTML($htmlFooter, array('rawWordML' => true, 'target' => 'defaultFooter'));
$myFooter = $docx->createWordMLFragment(array($footer));
$docx->addFooter(array('default' =>$myFooter));
Indeed, I have found no example that takes html, all the examples are either imports or images ...
Thank you in advance