Here you can find the source of getHtmlStrCnvrNew(String srcString)
public static String getHtmlStrCnvrNew(String srcString)
//package com.java2s; public class Main { public static String getHtmlStrCnvrNew(String srcString) { String tmpString = srcString; try {/*from ww w.j a va 2s . c o m*/ tmpString = tmpString.replaceAll("<", "<"); tmpString = tmpString.replaceAll(">", ">"); tmpString = tmpString.replaceAll("(", "("); tmpString = tmpString.replaceAll(")", ")"); tmpString = tmpString.replaceAll("#", "#"); tmpString = tmpString.replaceAll("&", "&"); } catch (Exception ex) { ex.printStackTrace(); } return tmpString; } }