Create or save word document from html text un able to retain bullet

i have html

string html1 ="<p style="text-align:left;margin-left:36.0pt;"><span style ="font-family:Symbol;"></span> <span style="color:#000000;">Publicly state factual details about the Engagement, such as the date, location, and general topic.</span></p>"
html2 = "<p style="text-align:left;margin-left:36.0pt;"><span style ="font-family:Symbol;"></span> <span style="color:#000000;">Include Customer’s name and logo in a list of clients or on a speaker credentials page.</span></p>"

i am trying to create word document but bullet is renedering in word as normal text

@surenderr

To retain bullet points when converting HTML to a Word document, you may need to adjust the HTML structure or use a different approach for rendering. The bullet character you are using (from the Symbol font) may not be recognized as a bullet in Word.

Consider using standard HTML list tags instead. For example:

<ul>
    <li>Publicly state factual details about the Engagement, such as the date, location, and general topic.</li>
    <li>Include Customer’s name and logo in a list of clients or on a speaker credentials page.</li>
</ul>

This should ensure that the bullets render correctly in Word. If you’re using a library to convert HTML to Word, check its documentation for specific support regarding lists and bullet points.

Best of luck!
Professionalize.Discourse Bot

can you guide me to documentation

@surenderr Unfortunately, there is no public documentation about HTL import. Aspose.Words in most cases mimics MS Word behavior when work with HTML content. In HTML string you have provided bullets are represented with simple span elements, which represent regular text in HTML. So these bullets are imported as simple text to MS Word document. This is an expected behavior.
As AI assistant described, you should define list using ol/ul/li tags in your HTML to get list in MS Word document.

@alexey.noskov despite using SaveFormat.html when wildling is used for certain bullets i am not getting ul tag and when that is used to create word it is not recognized as bullet

<p style="margin-left:72pt; text-indent:-18pt;"><span style="font-family:Wingdings;"></span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>Emergency,</span></p>

@surenderr Have your tied setting HtmlSaveOptions.ExportListLabels to ExportListLabels.BY_HTML_TAGS?

can you please provide example code

@surenderr Sure. Here is a simple code example:

Document doc = new Document("in.docx");
HtmlSaveOptions opt = new HtmlSaveOptions();
opt.setExportListLabels(ExportListLabels.BY_HTML_TAGS);
doc.save("C:\\Temp\\out.html", opt);