Android: Parsing HTML tags in JSON

前端 未结 2 549
半阙折子戏
半阙折子戏 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:40

    android.text.Html could be your friend here.

    static Spanned Html.fromHtml(
        String source,
        Html.ImageGetter imageGetter,
        Html.TagHandler tagHandler )
    

    http://developer.android.com/reference/android/text/Html.html

提交回复
热议问题