Well your raw html code should still work with this:
PHP Code:
$document->addLangvar($html);
// or:
$document->add(new Comment($html));
Though its more recommended to make use of the GUI package since it is more professional and flexible. One reason is that the form's action(redirect page) can be an issue if you are using relative url.