code: public static String escapeAttributeValue(String s) {
          s = cleanWS(s);
          s = replaceAll(s, BackSlashPtn, EscBackSlash);
          s = replaceAll(s, SemicolonPtn, EscSemicolon);
          s = replaceAll(s, RParenPtn, EscRParen);
          return s;
      }
docs: Standardize and escape an attribute value.
  <p>
  Clean white space. Escape back-slashes, semi-colons, and right
  parenthesis with a back-slash.
  
  @param s
  The attribute value to standardize and escape.
  
  @return The standardized and escaped attribute value.