Java tutorial
//package com.java2s; //License from project: Open Source License import android.text.Html; public class Main { public static String fixHtmlText(String text) { if (text != null) { text = text.trim().replaceAll("\\\\+", ""); text = text.replace("&", "&"); text = text.replace("<", "<"); text = text.replace(">", ">"); text = text.replace(""", "\""); } text = Html.fromHtml(text).toString(); return text; } }