Dear PHPDocx Team,
We are using embedHTML to export structured HTML tables to Word.
We apply style="background-color: #D9D9D9" directly to <td> elements in order to highlight specific table rows.
In the generated DOCX file, the cell appears correctly shaded.
However, it seems that an additional text highlight (w:highlight) is also applied.
As a result, even though the cell looks fine visually, users must also manually adjust or remove the text highlight when changing the shading color in Word – otherwise, the text retains the original background color from the highlight.
Our question:
Is there a way to use embedHTML() so that only cell shading is applied, without any additional text highlighting?
If not, would you consider adding an option such as "textHighlight" => false or "pureCellBackground" in a future release?
Thank you very much in advance for your feedback!
Best regards,
Anna