Is there a faster way to decode html characters to a string than Html.fromHtml()?

后端 未结 6 1150
轻奢々
轻奢々 2020-12-02 17:24

I am using Html.fromHtml(STRING).toString() to convert a string that may or may not have html and/or html entities in it, to a plain text string.

This is pretty slow

6条回答
  •  自闭症患者
    2020-12-02 17:57

    Although I have not tried them yet, I found some possible solutions:

    1. HTML Java Parsers
    2. HTML Parsing
    3. More HTML Parsing

    I hope it helps.

提交回复
热议问题