I need to extract text from a node like this:
Some text with tags might go here. Also there are paragraphs<
Also there are paragraphs<
you can use TextNode for this purpose:
List bodyTextNode = doc.getElementById("content").textNodes(); String html = ""; for(TextNode txNode:bodyTextNode){ html+=txNode.text(); }