I've noticed a few threads concerning adding HTML into a template. However, it wasn't clear if the issue was resolved. I have just downloaded the newest version (2.4) and am adding HTML into template variables and am getting a corrupt file when attempting to open the file. I've tried it in Word, OpenOffice and Google Docs. None of those will open the file.
I'm using this statement to add as HTML:
require_once 'classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->addTemplate('test.docx');
$x = "<b>Song Title</b><br />Test lyrics";
$docx->addTemplateVariable('SONG', $x,'html');
$docx->createDocx('template');
PLEASE HELP!!