I deduce from jsoup html the page, I want that links worked Example

<p class="p"><a href="/doc/word.doc" target="_blank">Текст</a></p> 

It is necessary to add a href="/doc/word.doc" a href="сайт.рф/doc/word.doc" , in other ways, for example, for example js target="_blank" . loadDataWithBaseURL("file:///android_asset/", text, "text/html", "utf-8", null); - already used

Found a way

 elWeb = elements.html(); elWeb = elWeb.replace("href=\"", "href=\"http://сайт.рф/"); 

But now it opens noticeably for a long time, are there other options?

  • try loadDataWithBaseURL("http://сайт.рф/", text, "text/html", "utf-8", null); - Vladyslav Matviienko 5:59 pm
  • You can still try to get all the links on the page with Jsoup, go through them in a loop and fix the href attribute. At the office. The site has an example. It may be faster. - slava

0