Hyperlinks not included in sheet_to_html() #2326

Closed
opened 2021-07-07 20:31:40 +00:00 by ohsnaplol · 1 comment
ohsnaplol commented 2021-07-07 20:31:40 +00:00 (Migrated from github.com)

If I export to a file, I can click the links no problem. If I use XLSX.utils.sheet_to_html(), the hyperlinks are not present in the HTML.

If I export to a file, I can click the links no problem. If I use XLSX.utils.sheet_to_html(), the hyperlinks are not present in the HTML.
SheetJSDev commented 2021-09-14 02:00:53 +00:00 (Migrated from github.com)

We'd accept a PR for this. Change would be in the HTML writer. For example:

if(cell.l && (cell.l.Target||"#").charAt(0) != '#') w = '<a href="' + cell.l.Target +'">' + w + '</a>';
We'd accept a PR for this. Change would be in the [HTML writer](https://github.com/SheetJS/sheetjs/blob/master/bits/79_html.js#L84). For example: ```js if(cell.l && (cell.l.Target||"#").charAt(0) != '#') w = '<a href="' + cell.l.Target +'">' + w + '</a>'; ```
Sign in to join this conversation.
No Milestone
No Assignees
1 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#2326
No description provided.