I have a word template with this setup.
$BLOCK_LOAN$Bla bla bla $DATE$, bla bla bla $CURRENCY$.$BLOCK_ LOAN$
Either I want to remove the whole block, this works well with $docx->deleteTemplateBlock('LOAN');
Or I want to replace the variables DATE and CURRENCY with $docx->replaceVariableByText(['DATE' => 'test', 'CURRENCY' => 'test2']); This also works well and leave me with the result: $BLOCK_LOAN$Bla bla bla test, bla bla bla test2.$BLOCK_ LOAN$ But this leaves me with the placeholders $BLOCK_LOAN$ still in the output. So I tried to remove it with $docx->clearBlocks(); But this removes the whole block. How do I remove the placeholder-text for the block, but not the content?!
I've tried to look at documentation and examples without luck.