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

后端 未结 6 1180
轻奢々
轻奢々 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 18:08

    This is an incredibly fast and simple option: Unbescape

    It greatly improved our parsing performance which requires every string to be run through a decoder.

提交回复
热议问题