You can replace a placeholder with HTML using addTemplateVariable method:
$docx->addTemplateVariable('NAME',
'<strong>David Hume</strong><br />
<em>Character is the result of a system of stereotyped principles.</em>',
'html');
Please check easy/TemplateHTML.php example included in phpdocx pro.
Regards.