There are two options :
First is to use Html.fromHtml(htmlString)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
textView.setText(Html.fromHtml(htmlString,Html.FROM_HTML_MODE_LEGACY));
} else {
textView.setText(Html.fromHtml(htmlString));
}
The tags allowed in this approach are : , Another option is to use Define a string resource like
, , ,
, , , , ,
,
,
,
,
, , , , , , , CDATA