views:

23

answers:

0

Hi all, I am using POI to create a spreadsheet report, I have html content with <p>, <b/>, &nbsp; etc, how do i parse these html tags in POI?. is there any function in POI which can parse html content?

this is a sample of my POI code:

HSSFCell cell = getHSSFCell(mysheet, 5, 1);
cell.setCellValue(new HSSFRichTextString(htmlContent));

Thank you in advance.