[英]How to get the contents between nested tags in java html parser?
Eg. 例如。 Consider the html 考虑HTML
<html>
<body>
<p> Hello <b> world </b> </p>
</body>
</html>
how can i get the content "Hello" while parsing? 解析时如何获取内容“ Hello”? Please help me. 请帮我。 I need it in java. 我在Java中需要它。 I'm aware of few html parsers like jehrico. 我知道像jehrico这样的HTML解析器。
方法handleText()
将为您提供。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.