By that, i mean if a String contains HTML tags like <br></br> they must be converted to \n.
I tried this:
String formatted = android.text.Html.fromHtml(nonFormatted).toString();
But this seems to just remove all the HTML tags.
Input:
String nonFormatted = "<ul><li>Android v4.0 (Ice Cream Sandwich) OS<\/li><li>2 MP Primary Camera<\/li><li>3-inch TFT Capacitive Touchscreen<\/li><li>850 MHz Processor<\/li><li>QWERTY Keypad<\/li><li>FM Radio<\/li><li>Wi-Fi Enabled<\/li><li>Expandable Storage Capacity of 32 GB<\/li><\/ul>";
Output after using android.text.Html.fromHtml(nonFormatted).toString();
String formatted = Android v4.0 (Ice Cream Sandwich) OS2 MP Primary Camera3-inch TFT Capacitive Touchscreen850 MHz ProcessorQWERTY KeypadFM RadioWi-Fi EnabledExpandable Storage Capacity of 32 GB
But on the website it looks like this:

I want my java String to be like the one in the image, instead of bullets, a new line character.
Thank You