I am getting HTML
text from a web service. I removed the HTML
by using following code, but CSS
code is still there.
Code
TextView tvNews;
tvNews.setText(Html.fromHtml(extractContent));
tvNews = (TextView) findViewById(R.id.tv_newsView);
tvNews.setText(Html.fromHtml(extractContent));
The above code removed the HTML
, but CSS
code is still there.
CSS Code
<style>\nbody {\n background-color: #ffffff;\n}\ntd\n{\npadding:5px;
\ncellpadding:25px;\n}\nthead th\n{\npadding:5px;\ncellpadding:25px;
\n}\n<\/style>\n<p><strong>My TEXT<\/strong> \u2013
Kindly guide me how to remove CSS
code from feed and put it into textView