code: public static boolean containsHtml(String value)
      {
          int numChars = value.length();
          char c;
  
          for (int i = 0; i < numChars; i++) {
              c = value.charAt(i);
              switch (c) {
                  case '<':
                      return true;
                  case '&':
                      return true;
                  case '"':
                      return true;
              }
          }
          return false;
      }
docs: Detect simple HTML contained inside of the given <code>value</code> string.
  @param value the value
  @return <code>true</code> if the string contains HTML; <code>false</code> otherwise.