Hi!
We have strange issue while using embedHTML(): when we creating DOCX from HTML shown below
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<table>
<tbody>
<tr>
<td>
<phpdocx_footnote>
Some text here and ...
<phpdocx_footnote_textdocument data-text=" note" data-bold="false" />
<phpdocx_footnote_textfootnote>
<p>footnote data</p>
</phpdocx_footnote_textfootnote>
</phpdocx_footnote>
</td>
</tr>
</tbody>
</table>
</body>
</html>
... using method embedHTML():
$options = [
'isFile' => true,
'baseURL' => dirname($url) . '/',
'downloadImages' => true,
'disableWrapValue' => true,
'removeLineBreaks' => true,
'useHTMLExtended' => true
];
$document = new CreateDocx();
$document->embedHTML($html, $options);
$structure = $document->createDocx('document_' . random_int(1, PHP_INT_MAX));
$structure->saveDocx('/path/to/root/' . $resource);
... we getting broken document (that document can`t be opened in MS Word).
How to properly insert into HTML-table footnote?