Formatting a CSV File that contains HTML for Import to Excel

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-06-15T21:28:40Z Indexed on 2010/06/15 21:42 UTC
Read the original article Hit count: 233

Filed under:
|
|

I would like to export a CSV file from my application for importing into Excel (or any other spreadsheet that supports CSV files). Anyhow, one of the cells in my table have rich content (i.e. HTML) which can, of course, contain commas as well as other HTML characters and formatting. I realize that Excel "can" handle HTML formatted text, but exporting it as CSV tends to screw up the data for importing. Is there some particular way I can format that particular cell so that imports correctly?

© Stack Overflow or respective owner

Related posts about excel

Related posts about csv