Replies: 5   Views: 2869
Unable to remove the highlighted word from ms word
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  · 08-06-2017 - 14:02

I am highlighting a word in HTML format. My code is:

require_once '../../../classes/';

$docx = new CreateDocxFromTemplate('../../files/TemplateHTML.docx');

$docx->replaceVariableByHTML('ADDRESS', 'inline', '<p style="font-family: verdana; font-size: 11px">C/ Matías Turrión 24, Madrid 28043 <b style="color: white;background: red;">Spain</b></p>', array('isFile' => false, 'parseDivsAsPs' => true, 'downloadImages' => false));


 O/P DOCX File:
 My problem is I cannot remove the red highlight from the word using "No Color" MS Word option.