Java tutorial
//package com.java2s; public class Main { public static String StringEscape(String str) { String cov = ""; if (str != null) { cov = str.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">"); } return cov; } }