Forum


Replies: 3   Views: 3032
How do i deal with html in a word fragment please
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-10-2017 - 06:58

Hello,

The code seems correct, but maybe the HTML tags are escaped in the database or any other issue. We recommend you to run the included sample in the examples/Core/embedHTML folder and the documentation available on

https://www.phpdocx.com/documentation/introduction/html-to-word-PHP

to find the source of the issue. Although there's no problem if you wrap your HTML using a root tag such as div or p, there's no need to do it when transforming HTML to DOCX.

Regards.