unescape HTML via Html.fromHtml - Android android.text

Android examples for android.text:Html

Description

unescape HTML via Html.fromHtml

Demo Code

import android.text.Html;
import android.text.TextUtils;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main{

    public static String unescapeHTML(String html) {
        if (html != null) {
            return Html.fromHtml(html).toString();
        } else {/*from   w ww. j a  v  a2  s .  com*/
            return "";
        }
    }

}

Related Tutorials