I am trying to place html into a TextView. Everything works perfectly, this is my code.
String htmlTxt = \"Hellllo\"; // the html is form
Hellllo
You can try this:
Spanned htmlDescription = Html.fromHtml(textWithHtml); String descriptionWithOutExtraSpace = new String(htmlDescription.toString()).trim(); textView.setText(htmlDescription.subSequence(0, descriptionWithOutExtraSpace.length()));