Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67469

Display comma separated string in HTML as a table / csv format

$
0
0

I have a string that I've built in my Typescript file that's comma separated. This can be exported as a 'file.csv' and everything is displayed correctly once downloaded.

What I would like to achieve is creating a "preview" of this string before it's downloaded. I would like the preview to resemble that of a HTML Table, or how it would appear in a CSV.

Example String

1,Header1, Header2, Header3, Header4,
2,0,1,"Content","More Content","

Naturally, in a CSV this would appear the same as the above but separated within borders / cells.

Is it possible to achieve this in HTML?


Viewing all articles
Browse latest Browse all 67469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>