Cell matrix of a TSV text from the clipboard (Excel, Google Sheets, LibreOffice, a text editor): line breaks
\r\n, \n or \r; a cell that starts with a quotation mark is quoted ("" inside = one quotation mark, line
breaks and tabs inside belong to the cell); one line break at the end is ignored; a byte order mark is removed;
shorter rows are filled with "". DOM-free.
Parameters
text: string
the clipboard text
Returns string[][]
rows of cell texts, all of the same length; [] for ""
Cell matrix of a TSV text from the clipboard (Excel, Google Sheets, LibreOffice, a text editor): line breaks
\r\n,\nor\r; a cell that starts with a quotation mark is quoted (""inside = one quotation mark, line breaks and tabs inside belong to the cell); one line break at the end is ignored; a byte order mark is removed; shorter rows are filled with"". DOM-free.