Forum


Replies: 2   Views: 3789
Style tag not recognized in the html to word conversion
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 it@globalshareplans.com  · 05-01-2016 - 11:48

Hi,

I'm using the 'embed HTML' method to convert HTML output to Word in two
different servers: one is local (for development), the other is production.

In the local server it works fine but in the other server I notice that
the <style> tag that I use to define style information in the HTML code
is not recognized in the conversion and the code inside the style tag
appears (without the tags) as a simple text in the created Word document.

Someone knows the cause and possible solution?

Thanks in advance

 

Posted by admin  · 05-01-2016 - 14:41

Hello,

Please check that Tidy is installed and enabled to solve the issue.

Regards.

Posted by it@globalshareplans.com  · 08-01-2016 - 11:34

Yes, you were right.
The php-tidy package wasn't installed.

Thanks!