Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove HTML tags while reading XML data on Android

Tags:

android

I am new to working on Android technology. I have to read XML files in which there are HTML tags such as <b> so I have to remove these tags before I display them on screen. If you know any way to remove these before display please help me.

like image 217
Vikram Avatar asked May 02 '26 15:05

Vikram


1 Answers

if you need to strip all the html tags you use the String method replaceAll("<(.|\n)*?>","");

like image 76
Noya Avatar answered May 04 '26 03:05

Noya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!