Java tutorial
//package com.java2s; public class Main { public static String replaceHtmlStr(String strData) { if (strData == null) { return ""; } strData = strData.replace("<", "<"); strData = strData.replace(">", ">"); strData = strData.replace("\"", """); return strData; } }