Question

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.

Was it helpful?

Solution

The method handleText() will give you that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top