Add the function getHtml() to twigTemplate