Cómo quitar la etiqueta de HTML en android?

Estoy creando un proyecto de muestra en android. Estoy usando la fuente de rss de ejemplo.

En la descripción xml que viene como esto,

<![CDATA[ <p>15&nbsp;Mar&nbsp;2012</p> <a href="http://newsonair.nic.in/full_news.asp?TOP2"> <p style='FONT-SIZE: 12px; LINE-HEIGHT: 150%' align='justify'> <img style='FLOAT: left; MARGIN-RIGHT: 5px' height='100' width='100' src=http://www.newsonair.nic.in/writereaddata/news_pictures/PICNEWS1.jpg? 0.7055475></a><br/> Parliament was today disrupted over the issue of removal of Trinamool Congress's leader and the Railway Minister, Mr.Dinesh Trivedi from the Council of Ministers.</p><br clear="all" /> ]]> 

Quiero mostrar como esto,

 Parliament was today disrupted over the issue of removal of Trinamool Congress's leader and the Railway Minister, Mr.Dinesh Trivedi from the Council of Ministers. 

Puede alguien decir la idea de hacer esto. Gracias.

  html = html.replaceAll("<(.*?)\\>"," ");//Removes all items in brackets html = html.replaceAll("<(.*?)\\\n"," ");//Must be undeneath html = html.replaceFirst("(.*?)\\>", " ");//Removes any connected item to the last bracket html = html.replaceAll("&nbsp;"," "); html = html.replaceAll("&amp;"," "); 

Aquí hay un pedazo de mi código.

Hágalo como a continuación:

 String plain = Html.fromHtml("your_html_string").toString(); 

Esto podría funcionar:

 myHtmlString.replaceAll("s/<(.*?)>//g",""); 

O

 Html.fromHtml(htmlSrc).toString(); 

Pero puede haber algunos errores en el último.

  • Por qué mi invocación de Canvas.drawText () simplemente no funciona
  • Expanda TextView con wrap_content hasta que la vista de vecino llegue al final del padre
  • Margen ajustado a la primera línea de textView
  • ¿Cómo habilito la copia estándar para un TextView en Android?
  • Android - ¿Cómo tomar un EditText (números) y luego convertirlo a un número entero para usarlo para las matemáticas?
  • Establecer el borde y el color de fondo de textView
  • Imprimir unicode personaje Android TextView
  • Compruebe si la vista de texto está elipsada en android
  • Cómo hacer TextView del mismo tamaño sin importar los textos dentro
  • Agregar una fuente personalizada para la aplicación completa de Android
  • Cómo mostrar el valor de una variable en la pantalla
  • FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.