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