Android: Parsing HTML tags in JSON

前端 未结 2 552
半阙折子戏
半阙折子戏 2021-01-15 18:05

can anybody help me parsing HTML tags in JSON? I got tags like ,

, etc. on the values of my JSON file. And I want to be able to parse them, so

2条回答
  •  借酒劲吻你
    2021-01-15 18:28

    Have a look at android.text.Html.

    You can use this to do something like:

    textView.setText(Html.fromHtml("Hello, I am bold"));
    

提交回复
热议问题