remove Html tags from string via android.text.Html.fromHtml - Android java.lang

Android examples for java.lang:String HTML

Description

remove Html tags from string via android.text.Html.fromHtml

Demo Code

import java.util.Arrays;

public class Main{

    public static String removeHtml(String original) {
        if (original == null)
            return null;
        return android.text.Html.fromHtml(original).toString();
    }//  w w  w .j  av a  2s.  c om

}

Related Tutorials