【发布时间】:2017-03-21 17:15:06
【问题描述】:
html中有类似<a>"There is a nothing special <<string>> haha"</a>的文字。
我想得到包含<< 和>> 的完整文本,所以输出看起来像There is a nothing special <<string>> haha。
我已经完成了
Elements e = element.select("a");
String text = e.text();
但输出是There is a nothing special <> haha。
如果打印e.html(),那就是
There is a nothing special <
<string>
>haha
</string>
我该如何解决?
【问题讨论】:
标签: jsoup