Strip html tag, comment and css in android

RBLibertarian

New Member
After doing a research, many people suggests this\[code\]public String stripHtml(String html) { return Html.fromHtml(html).toString();}\[/code\]However, it does not work well as it only remove html tag and still leaving css and html comment here. Is there a better way to do this? I know that html parser is better than regex to do this job. But I don't want to import a library to do this unless the parser is only a simple java source file so that I can port to my project. Thank You.
 
Back
Top