php - Insert html to .docx -
i use phpoffice/phpword work document templating, example can found here: https://github.com/phpoffice/phpword/blob/master/samples/old/template.php.
the problem need insert formatted text html
code generated wysiwyg editor. can't do:
$document->setvalue('value1', '<span>sun</span>');
document generation error, guess because library can't parse html along openxml. need is, probably, convert html first openxml, tried get:
i don't know. idea or suggestion how deal ? apreciated. thanks.
Comments
Post a Comment