html to Plain Text - Android java.lang

Android examples for java.lang:String HTML

Description

html to Plain Text

Demo Code


//package com.java2s;
import android.text.Html;

public class Main {

    public static String html2PlainText(String content) {
        return Html.fromHtml(content).toString().replaceAll("\n", "");
    }/*from  w ww  . j a  va2 s .co  m*/
}

Related Tutorials