Hello,
The addText method adds text strings into documents, but if you need to transform HTML to Word you need to use the embedHTML method (this method works standalone and as WordFragment). Please check that PHP Tidy is installed and enabled on your server to import HTML and CSS.
Regards.