Java HTML Decode htmlDecoder(String content)

Here you can find the source of htmlDecoder(String content)

Description

html Decoder

License

Apache License

Declaration

public static String htmlDecoder(String content) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String htmlDecoder(String content) {
        if (content == null) {
            return "";
        }/*from w ww.j a v  a 2s  . co m*/
        content = content.replaceAll("<br>", "");
        content = content.replaceAll("\n", "");
        content = content.replaceAll("\r", "");
        content = content.replaceAll("<", "");
        content = content.replaceAll(">", "");
        return content;
    }
}

Related

  1. HTMLDecode(String s)
  2. htmlDecode(String s)
  3. htmlDecode(String strSrc)
  4. htmlEntityDecode(String s)
  5. htmlEntityDecodeSingle(String s)
  6. toHtmlString(String src, boolean noSingleQuotes)