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 questionIs 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.
精彩评论