Code.gs
function doPost(e) {
...
template.data += getCustomerData + "<br>";
}
return template.evaluate().setSandboxMode(HtmlService.SandboxMode.IFRAME);
index.html
...
<?= data ?>
The code shown does display the correct values. However, it doesn't translate <br>
into html. I'm not sure why it isn't working since template.evaluate()
is supposed to return an HtmlOutput object.