1

I get this String from API which should be a HTML:

"<ul><li>Without Flavor & Size</li><li>With Gallery Images<br></li><li>With Tag<br></li><li>With User Review</li><li>Inventory: In stock</li><li>Visibility: Enable</li><li>With Regular Price  / Without Sale Price</li><li>Without Role based pricing</li><li>Without Upsells and Cross-sells Products</li><li>With one user review</li><li>Stock Availability: In Stock</li><li>Manage Stock: No<br></li></ul><p><br></p>"

Which is translated in a TextView like this when I use Html.fromHtml:

broken html in a textview

My question is how to display this text like the web page (which should be an unorder list) in TextView.

I tried Html.fromHtml, but it doesn't work and tried many external libs with no success.

JorgeAmVF
  • 1,660
  • 3
  • 21
  • 32
Ali Habbash
  • 777
  • 2
  • 6
  • 29

0 Answers0