Hello,
This is a simple sample that add a text, a footnote and other text using HTML Extended (available in the package but adding more content types):
$html = '
<head>
<style>
.italicc {font-style: italic;}
</style>
</head>
<p>My text</p>
<phpdocx_footnote>
<p>Here <span class="italicc">comes</strong> the </p>
<phpdocx_footnote_textdocument data-text=" footnote" />
<phpdocx_footnote_textfootnote>
<p>Text <em>footnote</em></p>
</phpdocx_footnote_textfootnote>
<p> and some other text.</p>
</phpdocx_footnote>
<p>More text</p>
';
$docx->embedHTML($html, array('useHTMLExtended' => true));
The output is correct. Please, could you post the most simple script that illustrates your issue so we can test it?
Regards.