PHPWord
PHPWord copied to clipboard
loadhtml instead of loadXML
Describe the Bug
when loading my html I have this error p>Message: DOMDocument::loadXML(): Opening and ending tag mismatch: meta line 1 and head in Entity, line: 1
I see that there is a branch that you made some changes that it works from there
how do I use composer to require that branch or correct the addHtml function in my code,
changing html.php in vendor folder is not the way to go as it will be overwritten if any update.,
thank you
Attach example for reproduce issue.
If i change the html.php it gives me the following errors.
PHP Warning: ZipArchive::close(): Read error: Value too large for defined data type in /home/pi/ArgNasMain/WebPrograms/vendor/phpoffice/phpword/src/PhpWord/Shared/ZipArchive.php on line 170 PHP Fatal error: Uncaught PhpOffice\PhpWord\Exception\Exception: Could not close zip file /home/pi/ArgNasMain/WebPrograms/results/tdsgenerator.odt: in /home/pi/ArgNasMain/WebPrograms/vendor/phpoffice/phpword/src/PhpWord/Shared/ZipArchive.php:171