Forum


Replies: 7   Views: 255
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  · 05-05-2019 - 09:48

Hi,

I am using PHPDocx Corporate license 5.5.

Could you tell me why this example doesn't not render the text in red color?

$docx->replaceVariableByHTML('LETTER_TEXT3', 'block', "<html><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>", array('parseDivsAsPs' => true));

Best regards,

S├ębastien