code: private static int needsEscapeElement(final String pString) {
          for (int i = 0; i < pString.length(); i++) {
              switch (pString.charAt(i)) {
                  case '&':
                  case '<':
                  case '>':
                  //case '\'':
                  //case '"':
                      return i;
                  default:
              }
          }
          return -1;
      }
docs: Returns an the first index from the input string that should be escaped
  if escaping is needed, otherwise {@code -1}.
  
  @param pString the input string that might need escaping.
  @return the first index from the input string that should be escaped,
  or {@code -1}.