Convert string To Html - Android android.text

Android examples for android.text:Html

Description

Convert string To Html

Demo Code

import android.text.Html;
import android.text.Spanned;

public class Main{

    /**//w w w. j  a v a 2  s  . com
     * String to html.
     * 
     * @param string
     *            the string
     * @return the spanned
     */
    public static Spanned stringToHtml(String string) {
        return Html.fromHtml(string);
    }

}

Related Tutorials