# Sheet2HTMLOpts

Source: /xlsx-format/api-reference/interfaces/sheet2htmlopts

Options for converting a worksheet to an HTML table string

```ts
interface Sheet2HTMLOpts extends WorksheetCellBudgetOptions
```

## Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` maxWorksheetCells ` | ` number ` | No | Maximum cumulative cell work per sheet. This counts explicit cells plus generated column, hyperlink, span, and export positions. XLSX reads default to 10,000,000; exports default to 1,000,000. |
| ` id ` | ` string ` | No | HTML id attribute for the table element |
| ` editable ` | ` boolean ` | No | If true, add contenteditable attribute to cells |
| ` header ` | ` string ` | No | HTML to prepend before the table |
| ` footer ` | ` string ` | No | HTML to append after the table |
| ` sanitizeLinks ` | ` boolean ` | No | If not false, sanitize hyperlink targets to prevent XSS |
