public static boolean isHTMLString(String s){
  if (s != null) {
    if ((s.length() >= 6) && (s.charAt(0) == '<') && (s.charAt(5) == '>')) {
      String tag=s.substring(1,5);
      return tag.equalsIgnoreCase(propertyKey);
    }
  }
  return false;
}

public static boolean isHTMLString ( String s ) { if ( s != null ) { if ( ( s . length ( ) >= 6 ) && ( s . charAt ( 0 ) == '<' ) && ( s . charAt ( 5 ) == '>' ) ) { String tag = s . substring ( 1 , 5 ) ; return tag . equalsIgnoreCase ( propertyKey ) ; } } return false ; }
check the given string to see if it should trigger the html rendering logic in a non - text component that supports html rendering .
