Я получаю данные с сервера и пытаюсь интегрировать их в свое приложение. Я использую Retrofit2 и Rxjava2 для получения данных с сервера. Как я могу включить и исключить в свое приложение или как удалить эти HTML-теги из ответа?
Ниже приведен ответ моего сервера:
{
"id": "309",
"state": "62",
"country": "1",
"price": "7888",
"maxprice": "9888",
"shortdescr": " Port Blair With Same Day Havelock",
"descr": "",
"included": "[list]\r\n\t[*]All accommodation on double / triple sharing\r\n\t[*]Hotel Accommodation\r\n\t[*]Meal Plan CP Breakfast Only.\r\n\t[*]Entrance Fees.\r\n\t[*]Airport Transfer.\r\n\t[*]All Transportation for local sight-seeing tours and airport/ hotel/ by 1 AC Vehicle in Port Blair/Havelock and NAC Vehicle at Neil Island .as per itinerary.\r\n\t[*]Cruise transfers Port Blair –Havelock – Portblair by Ferry.\r\n[/list]\r\n",
"exclude": "[list]\r\n\t[*]GST 5%\r\n\t[*]Any airfare.\r\n\t[*]Any Meals (If on EPAI).\r\n\t[*]Any personal expense.\r\n\t[*]Any type of insurance.\r\n\t[*]Any claim due to natural calamities.\r\n\t[*]Any other things which are not mentioned in inclusions.\r\n\t[*]Any extra services used by you.\r\n[/list]\r\n",
"image": "cms_157140016139.png",
"status": "1",
"created_date": "2019-10-18",
"updated_date": "2020-03-12",
"packages": "2"
}
Я получаю данные с сервера и пытаюсь интегрировать их в свое приложение. Я использую Retrofit2 и Rxjava2 для получения данных с сервера. Как я могу включить и исключить в свое приложение или как удалить эти HTML-теги из ответа? Ниже приведен ответ моего сервера: [code] { "id": "309", "state": "62", "country": "1", "price": "7888", "maxprice": "9888", "shortdescr": " Port Blair With Same Day Havelock", "descr": "", "included": "[list]\r\n\t[*]All accommodation on double / triple sharing\r\n\t[*]Hotel Accommodation\r\n\t[*]Meal Plan CP Breakfast Only.\r\n\t[*]Entrance Fees.\r\n\t[*]Airport Transfer.\r\n\t[*]All Transportation for local sight-seeing tours and airport/ hotel/ by 1 AC Vehicle in Port Blair/Havelock and NAC Vehicle at Neil Island .as per itinerary.\r\n\t[*]Cruise transfers Port Blair –Havelock – Portblair by Ferry.\r\n[/list]\r\n", "exclude": "[list]\r\n\t[*]GST 5%\r\n\t[*]Any airfare.\r\n\t[*]Any Meals (If on EPAI).\r\n\t[*]Any personal expense.\r\n\t[*]Any type of insurance.\r\n\t[*]Any claim due to natural calamities.\r\n\t[*]Any other things which are not mentioned in inclusions.\r\n\t[*]Any extra services used by you.\r\n[/list]\r\n", "image": "cms_157140016139.png", "status": "1", "created_date": "2019-10-18", "updated_date": "2020-03-12", "packages": "2" } [/code] Как показать данные в приложении?