Parse HTML in Android

前端 未结 5 849
逝去的感伤
逝去的感伤 2020-11-22 06:22

I am trying to parse HTML in android from a webpage, and since the webpage it not well formed, I get SAXException.

Is there a way to parse HTML in Andro

5条回答
  •  借酒劲吻你
    2020-11-22 06:42

    String tmpHtml = "a whole bunch of html stuff";
    String htmlTextStr = Html.fromHtml(tmpHtml).toString();
    

提交回复
热议问题