def AsHtmlTable(self):
    th = ["<th>%s</th>" % f for f in self.fields]
    headers = "<tr>%s</tr>" % "".join(th)
    rows = []
    for val in self.results:
      values = [val[k] for k in self.fields]
      row = ["<td>%s</td>" % f for f in values]
      rows.append("<tr>%s</tr>" % "".join(row))
    html_out = "<table>%s%s</table>" % (headers, "\n".join(rows))
    return html_out
Return the results as an HTML table.
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/reports.py/ClientReport.AsHtmlTable