Replies: 1   Views: 1135
Phpdocx 5.5: css style's style code inserted as text in the docx file all of a sudden
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 17-06-2021 - 16:07


You need to enable the PHP Tidy extension; it seems you didn't enable this required extension to transform HTML to DOCX when you upgraded your PHP version. This requirement is explained on the documentation pages:

If you haven't installed the Tidy extension, errors may ocurr, like appearing the CSS styles in the document, import with errors the HTML or not displaying accents and other non ASCII characters.

Also please note that phpdocx is compatible with PHP 7.4 since the release of phpdocx 9.5 ( Using previous versions of phpdocx with PHP 7.4 is not supported and you can get unexpected errors. We recommend you to upgrade your version of phpdocx to the latest release on MY PHPDOCX page after login.