/** * Use to encapsulate new-style (XSSAPI-based) encoding for HTML element content. * * @param source the string to be encoded * @return the encoded string */ public static String encodeForHTML(String source) { XSSAPI xssAPI = new XSSAPIImpl(); return xssAPI.encodeForHTML(source); }
/** * Use to encapsulate new-style (XSSAPI-based) encoding for XML element content. * * @param source the string to be encoded * @return the encoded string */ public static String encodeForXML(String source) { XSSAPI xssAPI = new XSSAPIImpl(); return xssAPI.encodeForXML(source); }
/** * Use to encapsulate new-style (XSSAPI-based) encoding for XML attribute values. * * @param source the string to be encoded * @return the encoded string */ public static String encodeForXMLAttr(String source) { XSSAPI xssAPI = new XSSAPIImpl(); return xssAPI.encodeForXMLAttr(source); }
/** * Use to encapsulate new-style (XSSAPI-based) encoding for HTML attribute values. * * @param source the string to be encoded * @return the encoded string */ public static String encodeForHTMLAttr(String source) { XSSAPI xssAPI = new XSSAPIImpl(); return xssAPI.encodeForHTMLAttr(source); }
/** * Use to encapsulate new-style (XSSAPI-based) encoding for JavaScript strings. * * @param source the string to be encoded * @return the encoded string */ public static String encodeForJSString(String source) { XSSAPI xssAPI = new XSSAPIImpl(); return xssAPI.encodeForJSString(source); }