Forum


Replies: 7   Views: 2585
Replacevariablebyhtml css render with root tag not working
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 Bouillou  · 06-05-2019 - 09:10

Thank you for your reply.

I tested your example and the text is not render in red color. Therefore, it is not related to the template.

Is it a bug in the corprate version 5.5?

Below, the exact code I am running :

<?php

require_once '../../../Classes/Phpdocx/Create/CreateDocx.inc';

$docx = new Phpdocx\Create\CreateDocx();
$docx->embedHTML('
<html>
<head>
</head>
<body style="color: red">

<p>This is a test.</p>
<p>Another test which must be separated in a specific paragraph.</p>
<p>And another</p>

</body>
</html>');

$docx->createDocx('output');