When I try to use replaceVariableByHTML() function for substituting the value of the template variable in a docx document, the default styling of template variable is lost in the resultant document when downloaded. The size of the font changes to 12 pt, with Arial font applied by default. On the contrary when I use the function replaceVariableByText() instead, this issue does not occurs.
I am using the PHPDocx version 7.0
Please guide.