Java tutorial
//package com.java2s; public class Main { public final static String escapedXml(String string) { return string.replace("&", "&").replace("<", "<").replace(">", ">"); } }