Fix response templating when return HTML