I am using the following:
$docx->replaceTemplateVariableByHTML('po_received', 'inline', "<input type='checkbox' checked='checked'/>", array());
$docx->replaceTemplateVariableByHTML('po_approved', 'inline', "<input type='checkbox'/>", array());
The variables are being replaced, but the variable symbol (~ in my case because I am using the setTemplateSymbol()) remains. How can I get it to remove the template symbol when it inserts the checkbox.