Retrieve text from html file in java

后端 未结 2 737
深忆病人
深忆病人 2020-12-16 03:37

I want to get text from html file in java

My html file is:



vishal

patel &l
2条回答
  •  猫巷女王i
    2020-12-16 04:13

    I have used a library called JSoup.
    It's very simple to retrieve the text-only part from a HTML file.
    It's very simple:

    Jsoup.parse(html).text();
    

    gives you the text from the HTML file

提交回复
热议问题