How to reach each td value of html table as string #2903

Closed
opened 2023-03-19 03:26:10 +00:00 by sachinshrestha483 · 1 comment
No description provided.
Owner

If you have HTML code, passing the option raw: true suppresses value parsing:

var HTML = "<table><tr><td>123</td></tr></table>";
var wb = XLSX.read(HTML, { type: "string", raw: true });

If you are using table_to_book or table_to_sheet or sheet_add_dom, pass the option raw: true to suppress value parsing:

var elt = document.getElementById("table_id");
var wb = XLSX.utils.table_to_book(table, {raw: true});
If you have HTML code, passing the option `raw: true` suppresses value parsing: ```js var HTML = "<table><tr><td>123</td></tr></table>"; var wb = XLSX.read(HTML, { type: "string", raw: true }); ``` If you are using `table_to_book` or `table_to_sheet` or `sheet_add_dom`, pass the option `raw: true` to suppress value parsing: ```js var elt = document.getElementById("table_id"); var wb = XLSX.utils.table_to_book(table, {raw: true}); ```
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#2903
No description provided.