Convert HTML to plain text in Java

前端 未结 6 2577
终归单人心
终归单人心 2021-02-20 08:51

I need to convert HTML to plain text. My only requirement of formatting is to retain new lines in the plain text. New lines should be displayed not only in the case of <

6条回答
  •  遇见更好的自我
    2021-02-20 09:18

    You can use XSLT for this purpose. Take a look at this link which addresses a similar problem.

    Hope it is helpful.

提交回复
热议问题