You do not lose the delimiters, the cells are separated by tabs ( \t ) and rows with newline lines ( \n ), which may not be visible on the form. Try it yourself: copy the content from Excel to notepad, and you will see that your cells are well-built. It is easy to separate the fields into tabs and replace them with something else, so you can even build a table from them. Here is an example using jQuery:
var data = $('input[name=excel_data]').val(); var rows = data.split("\n"); var table = $('<table />'); for(var y in rows) { var cells = rows[y].split("\t"); var row = $('<tr />'); for(var x in cells) { row.append('<td>'+cells[x]+'</td>'); } table.append(row); }
Thus, essentially, this script creates an HTML table from the inserted Excel data.
Tatu Ulmanen Jan 05 2018-10-011414
source share