public static String escapeText(String text){
  StrBuilder sb=new StrBuilder();
  escape(sb,text,false,false);
  return sb.toString();
}

public static String escapeText ( String text ) { StrBuilder sb = new StrBuilder ( ) ; escape ( sb , text , false , false ) ; return sb . toString ( ) ; }
escapes any xml entities in the text .
