Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String cleanFromXML(String cleanMe) {
        if (cleanMe != null) {
            cleanMe = cleanMe.replaceAll("&", "&");
            cleanMe = cleanMe.replaceAll("&lt;", "<");
            cleanMe = cleanMe.replaceAll("&gt;", ">");
            cleanMe = cleanMe.replaceAll("&quot;", "\"");

            return cleanMe;
        }

        return "";
    }
}