import org.owasp.esapi.*; import java.io.*; import java.util.*; public class Example { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { String str1=ESAPI.encoder().canonicalize("amit gautam").toString(); System.out.println(str1); /*String str2=ESAPI.encoder().encodeForHTML(" ").toString(); System.out.println(str2);*/ /*String str3=ESAPI.initialize(""); System.out.println("String is-- "+str3+" yes");*/ }catch( Exception e){System.out.println(" Exception catch by me----"+e);} } }