Forum


Replies: 5   Views: 2855
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 sandeep.cm  · 08-06-2017 - 14:02

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

<?php
require_once '../../../classes/CreateDocx.inc';

$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));

$docx->createDocx('example_replaceTemplateVariableByHTML_1');
?>


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