JSON API - addHtml
addHtml
PREMIUM
TRIAL / ADVANCED
Inserts HTML and CSS into the Excel spreadsheet.
Note
You are reading the JSON API documentation. For the PHP API method please go to addHtml.
JSON data
| Key | Description |
|---|---|
| html | HTML and CSS content to be transformed. |
| position | Cell position in the active sheet: "A1", "C3", "AB7"... |
| disableWrapValue | If true disable using a wrap value with Tidy to prevent extra blank spaces. Default as false. |
| forceNotTidy | False as default. If true, avoid using Tidy. Only recommended if Tidy can't be installed. |
| insertMode | Insert mode if the position contains an existing content: "replace", "ignore". Default as "replace". |
| parseCSSVars | If true parses CSS variables. |
Code samples
Example #1
Example #2
Release notes
- phpxlsx 6.0:
- new action.