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 xmlConv(String input) {
        String s = input;

        s = s.replaceAll("&", "&");
        s = s.replaceAll("&lt;", "<");
        s = s.replaceAll("&gt;", ">");
        s = s.replaceAll("&apos;", "'");
        s = s.replaceAll("&quot;", "\"");

        return s;

    }
}