Here you can find the source of HtmlEncode(String str)
public static String HtmlEncode(String str)
//package com.java2s; //License from project: Open Source License public class Main { public static String HtmlEncode(String str) { str = str.replace(">", "<"); str = str.replace(">", "<"); return str; }//w ww.j a v a2s. c o m }