我想从java中的html文件中获取文本
我的html档案是:
<body>
<p>vishal</p>
<strong>patel</strong>
<bold >vishal patel
Run Code Online (Sandbox Code Playgroud)
我想这样输出
vishal
patel
vishal patel
Run Code Online (Sandbox Code Playgroud)
怎么做请帮帮我
Rak*_*esh 21
我使用了一个名为JSoup的库.
从HTML文件中检索纯文本部分非常简单.
这很简单:
Jsoup.parse(html).text();
Run Code Online (Sandbox Code Playgroud)
为您提供HTML文件中的文本
| 归档时间: |
|
| 查看次数: |
15860 次 |
| 最近记录: |