I have a problem to convert nested ul and li html balises to DOCX.
I have something like that in my HTML code :
- Code: Select all
<html>
<body>
<h3>content</h3>
<ul>
<li>content</li>
<li>content
<ul>
<li>content</li>
<li>content</li>
</ul>
</li>
<li>content
<ul>
<li>content
<ul>
<li>content
<ul>
<li>content</li>
<li>content</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</body>
</html>
I convert it
- Code: Select all
XHTMLImporter.convert(htmlCode, null, template);
And I get all of my content at the same level in my DOCX file. ...