Jsoup - extracting text
问题 I need to extract text from a node like this: <div> Some text <b>with tags</b> might go here. <p>Also there are paragraphs</p> More text can go without paragraphs<br/> </div> And I need to build: Some text <b>with tags</b> might go here. Also there are paragraphs More text can go without paragraphs Element.text returns just all content of the div. Element.ownText - everything that is not inside children elements. Both are wrong. Iterating through children ignores text nodes. Is there are way