我希望能够使用 Jericho 解析两个评论标签之间的所有文本。例如,
<!--start-->
abc
123
<!--end-->
会回来
abc
123
这有可能吗?
最佳答案
http://jericho.htmlparser.net/docs/index.html -> Html 评论 -> http://jericho.htmlparser.net/samples/console/src/FindSpecificTags.java ->
(...)
System.out.println("HTML Comments:");
displaySegments(source.getAllTags(StartTagType.COMMENT));
(...)
关于java - 如何在 Jericho 的两条评论之间进行解析?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9685750/