We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Displaying lists in a paragraph

I'm making a doument based on paragraphs stored in a DB as HTML-code. Those paragraphs can contain lists (< ol > or < ul >).

The problem I'm heaving now is that, when I want to add the HTML-code to my document, I get an error that there is an invalid element < ul > found in that paragraph < p >.

para = section.AddParagraph() as WParagraph;
para.AppendHTML(htmlCodeWithList);

htmlCodeWithList doesn't contain any < p >-tag so "para.AppendHTML" puts a < p >-tag around my HTML.

Is there a way to work around this?




1 Reply

BP Bhuvaneswari P Syncfusion Team July 7, 2008 12:26 PM UTC

Hi Bram,

Thank you for your interest in Syncfusion products.

Could you please provide your HTML file or HTML code in attachment. So that I would be able to reproduce in my end and investigate more on this issue.

Best Regards,
Bhuvana


Loader.
Live Chat Icon For mobile
Up arrow icon