android html decoding

前端 未结 5 647
迷失自我
迷失自我 2021-01-06 11:03

I am confused about html text that I need to decode before I display it to the user. I do:

result= Html.fromHtml(temp).toString();

where te

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 11:47

    Even I had the same issue. Try this,

    Spanned ss=Html.fromHtml(your String);
    String tempString=ss.toString();
    

提交回复
热议问题