I want to display the Html Formatted value in to Excel cell. the html tag contains unordered, ordered and bullets, italic and underline and paragraph.
I want to pass the html markup tag to something which shows the formatted value in apache poi excel's cell value.
XSSFWorkbook workBook = null;
String value = "<html>My String</html>";
workBook = new XSSFWorkbook ();
XSSFCell cell = row.createCell(columnIndex);
XSSFRichTextString textString = new XSSFRichTextString (value);
cell.setCellValue(value);
Input data:
<ul>
<li> Iam <strong>Bold </strong> and Iam <u>Underlined </u> </li>
<li> Just a Normal Text </li>
<li> Iam <b> Bold </b> <em>and italic </em> <u> and underlined </u> </li>
</ul>
Expected output:
. Iam Bold and Iam Italic
. Iam Bold and Iam Italic and Underlined
. Just a normal text
Any api provides that, Aspose or Itext or Some other api.