Bullet List not formatted (List-style not parsed)

Hi,

I am trying to insert a bullet list to the document using documentbuilder.insertHTML(string str)

Below is the HTML snippet I am trying to insert

<ul class="my_list">
    <li>
        VP - Broker and Managed
        Accounts
    </li>
    <li style=" list-style:none;"><br /></li>
    <li>
        VP - Field
        Interactions
    </li>
    <li style=" list-style: none;"></li>
</ul>

It seems like the builder does not parse the style that is defined in “li” tag. How do I solve this problem?
I still see an empty bullet that appears in the document although the style is defined as none.

Hi

Thanks for your inquiry. Maybe, you should use code like the following to resolve the problem:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
string html = "<ul class=\"my_list\"><li>VP - Broker and Managed Accounts</li><li style=\" list-style: none;\"><br /></li><li>VP - Field Interactions</li><li style=\" list-style: none;\"></li></ul>";
builder.InsertHtml(html);
builder.ListFormat.RemoveNumbers();
doc.Save(@"Test001\out.doc");

Hope this helps.

Best regards.