I'm working on an app, I want to generate a CSV file, it has many columns with normal text, one of the columns has HTML text
I want to insert HTML text without formatting but with tags, when I open the file in CSV it distorts the formatting due to line breaks and other HTML tags. Below is my code
FileWriter fw = new FileWriter(filename); // the below is normal string and it's fine fw.append(selectedProduct.getHandle()); fw.append(","); // below is html string it doesn't come in single cell fw.append(selectedProduct.getHTMLBody()); fw.append(",");
I want to show HTML In a single cell like in CSV like below
Any help would be grateful.