Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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("&lt;", "<");
            text = text.replace("&gt;", ">");
            text = text.replace("&quot;", "\"");
        }
        text = Html.fromHtml(text).toString();
        return text;
    }
}