PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

loadhtml instead of loadXML

Open sidbenac opened this issue 4 years ago • 2 comments

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

sidbenac avatar Apr 16 '20 16:04 sidbenac

Attach example for reproduce issue.

liborm85 avatar Jan 02 '21 10:01 liborm85

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

minermartijn avatar Jul 18 '22 09:07 minermartijn