Hi,
I am extracting content from the word file,importing the extracted content to a document and converting it to html string. Due to some bullet issue I am converting document to html through ByteArrayOutputStream.
Document dstHTML = generateDocument(document, extractedNodes);
HtmlSaveOptions options = new HtmlSaveOptions();
options.setSaveFormat(SaveFormat.HTML);
options.setExportImagesAsBase64(true);
options.setExportListLabels(ExportListLabels.BY_HTML_TAGS);
ByteArrayOutputStream docStream = new ByteArrayOutputStream();
dstHTML.save(docStream, options);
return docStream.toString();
So result getting full html file. This full html causing issue in my other task, so i want only body content from this html string. Is there any way or method in aspose will return only body content from html string?