I set $docxHtml->setTemplateSymbol('');
So
$docxHtml->replaceVariablebyWordFragment(array($key => $htmlFragment));
searchs for $key on hole document istead to only template variables, but I get a warning and doesn't work,
so at line 1860 CreateDocxFromTemplate.inc I use this
if(self::$_templateSymbol!="")
$documentSymbol = explode(self::$_templateSymbol, $content);
else
$documentSymbol[]=$content;