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 htmldecode(String str) {
        str = str.replace("&", "&");
        str = str.replace(" ", " ");
        str = str.replace(""", "\"");
        str = str.replace("'", "'");
        str = str.replace("&lt;", "<");
        str = str.replace("&gt;", ">");
        str = str.replace("<br[^>]*>(?:(rn)|r|n)?", "n");
        return str;
    }
}