| java.lang.Object org.araneaframework.jsp.util.JspStringUtil
JspStringUtil | abstract public class JspStringUtil (Code) | | Some simple utility routines for Strings.
author: Konstantin Tretyakov |
Method Summary | |
public static String | escapeHtmlEntities(String s) | public static String | underlineAccessKey(String s, String accessKey) Given a string and an accesskey, finds the first appearance of
accessKey in that string, and surrounds it with <u>…</u>.
Returns the result.
If accessKey is null, is not present in the string or its length is not 1,
returns the string unmodified.
Assumes that given string has no HTML elements in it. |
underlineAccessKey | public static String underlineAccessKey(String s, String accessKey)(Code) | | Given a string and an accesskey, finds the first appearance of
accessKey in that string, and surrounds it with <u>…</u>.
Returns the result.
If accessKey is null, is not present in the string or its length is not 1,
returns the string unmodified.
Assumes that given string has no HTML elements in it. Does case-insensitive matching.
Parameters: s - String in which the access key is to be underlined. May be null. Parameters: accessKey - Access key to underline. May be null. Given string with accesskey underlined (if possible). |
|
|