Strip off HTML tags from the target HTML string - Android java.lang

Android examples for java.lang:String HTML

Description

Strip off HTML tags from the target HTML string

Demo Code

import android.text.Html;

public class Main{

    /**/*from  w  ww.  j  a  va 2 s.c om*/
     * Strip off HTML tags from the target HTML string
     * 
     * @param html
     * @return boolean
     */
    public static String stripHtml(String html) {
        return Html.fromHtml(html).toString();
    }

}

Related Tutorials