开发者

Java API with which I can manipulate and modify HTML code and its tags? [closed]

开发者 https://www.devze.com 2022-12-24 11:04 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

Is there a 3rd party API for the sole purpose with which I can replace r开发者_JAVA百科elative URLs in the source HTML and CSS into absolute URLs, keeping in mind the fact that the source contains a mix of relative and absolute URLs. For those thinking twice about this question, the String Object's replaceAll() method has some shortcomings.


You can use TagSoup to parse the HTML and then use standard XPath expressions to get all your links and img tags.

0

精彩评论

暂无评论...
验证码 换一张
取 消