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?