How can I parse a HTML string in Java?

后端 未结 6 591
再見小時候
再見小時候 2021-01-04 07:50

Given the string \"

Hello World!
\", what is the (easiest) way to get a DOM Element represent
6条回答
  •  忘掉有多难
    2021-01-04 08:03

    you could use HTML Parser, which a Java library used to parse HTML in either a linear or nested fashion. It is an open source tool and can be found on SourceForge

提交回复
热议问题