How to extract tags and text between tags to a list with JSoup
问题 I have following html: <div class="CustomClass"> Hi!<br/> <br/> Bla Bla bla<br/> <br/> <a href...></a> bla bla bla <iframe...></iframe> Thank you! </div> I need a list with the children of the div, something like the following: 0->Hi! 2-><br/> 3->Bla Bla bla 4-><br/> 5-><a href...></a> 6->bla bla bla 7-><iframe...></iframe> 8->Thank you! I tried by getting the children of the div element, and then iterating the children and converting them to html, but this returns only the tag elements and