Simplify compileToHtml