【发布时间】:2015-01-23 18:04:12
【问题描述】:
例如我有 HTML 块:
<h2><a href="http://google.ru" style="text-decoration: underline;"><img src="http://any_image.jpg"/></a>some_text</h2>
我想得到单词“some_text”。如果我使用这样的代码:
Elements elements = doc.select("h2");
我会得到所有的代码。请帮忙,我是 JSOUP 的新手
【问题讨论】: