api/html Functions
Functions exported from src/api/html.ts
htmlToSheet
function htmlToSheet(html: string): WorkSheetParameters
| Name | Type | Description |
|---|---|---|
| html | string | HTML string containing a table |
Returns
WorkSheet
A WorkSheet with the parsed table data
sheetToHtml
function sheetToHtml(ws: WorkSheet, opts?: Sheet2HTMLOpts): stringParameters
| Name | Type | Description |
|---|---|---|
| ws | WorkSheet | The worksheet to convert |
| opts (optional) | Sheet2HTMLOpts | Optional HTML generation options (header, footer, id, editable, sanitizeLinks) |
Returns
string
The HTML string representation of the worksheet