question: public static String entityEncode ( String text ) { String result = text ; if ( result == null ) { return result ; } return StringEscapeUtils . escapeXml ( XMLStringUtil . escapeControlChrs ( result ) ) ; }
target:  Encode entity for HTML or XML output.