How I can replace “text” in the each tag using Jsoup

后端 未结 3 1111
粉色の甜心
粉色の甜心 2021-01-22 09:54

I have the following html:





    

text text

3条回答
  •  [愿得一人]
    2021-01-22 10:43

    Document doc = Jsoup.connect(url).get();
    String str = doc.toString();
    str = str.replace("text", "word");
    

    try it..

提交回复
热议问题