javahtmlparsingjericho-html-parser

How to get the contents between nested tags in java html parser?


Eg. Consider the html
<html>
<body>
<p> Hello <b> world </b> </p>
</body>
</html>
how can i get the content "Hello" while parsing? Please help me. I need it in java. I'm aware of few html parsers like jehrico.


Solution

  • The method handleText() will give you that.