As far as I know, fromhtml of Android can recognize a few HTML tags like “<b>, <i>, <u>, <a>” and so on. But I cannot convince how to render following HTML code for android with fromhtml attribute.
String html = "<code style='background:#f0f0f0'>this is code</code><pre>this is pre</pre><table><tr><td>this is table</td></tr></table>";
textView.setText(Html.fromHtml(html);
It’s only for TextView, not for WebView. any solution will be appreciated.
Now I changed my mind to use WebView instead of TextView for displaying all HTML tag in android.