html
The html method converts a Deephaven table to a string containing an HTML table.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| source | Table | The Deephaven table to convert to an HTML table. |
Returns
A string containing an HTML <table> element. The string is a point-in-time copy of the table's rows at the moment of the call. If the table is ticking, the string does not update; call html again to get the latest rows.
Examples
The html method takes one argument — the table to convert. The example below creates a table with a comma-containing string value and a null value, then converts it to HTML.
Warning
html builds the whole table into a single in-memory string, so use it only on small tables to avoid running out of memory.
Note
Since HTML tables represent all data as plain, untyped text, all typing will be lost. String values are escaped with CSV rules, not HTML rules, so a value that contains HTML markup becomes active markup in any page that displays the output. Instant values are formatted in the server JVM's default time zone, and null values are written as (null).