Я использую jsoup, и мне очень приятно привести в порядок html, но у меня есть кусок недопустимого html, как показано ниже:
<p>The recurrence, in close succession <ul><li>list item 1</li><li>list item 2</li></ul> second part of thisssss
Я хочу получить:
<p>The recurrence, in close succession </p><ul><li>list item 1</li><li>list item 2</li></ul> <p>second part of thisssss</p>
Так может ли jsoup привести в порядок html и вернуть этот вывод?
спасибо