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


i using html.fromhtml(string).tostring() convert string may or may not have html and/or html entities in it, plain text string.

this pretty slow, think last calculation took 22ms on avg. large batch of these can add on minute. looking faster, performance built option.

is there anyway speed or there other decoding options available?

edit: since there doesn't appear built in method faster or built performance specifically, reward bounty can point me in direction of library that:

  • works android
  • licensed free use
  • faster html.fromhtml(string).tostring();

as note, tried jsoup method: jsoup.parse(string).text() , slower.

what org.apache.commons.lang.stringescapeutils's unescapehtml(). library available on apache site.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -