1if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
2 textView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>", Html.FROM_HTML_MODE_COMPACT));
3} else {
4 textView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>"));
5}
6