public static String getHexColorValue(final Color c) {
    return Integer.toHexString(c.getRGB()).substring(2);
  }
Escapes the characters in a <code>String</code> using HTML entities.

@param str the <code>String</code> to escape, may be <code>null</code>
@return a new escaped <code>String</code>, empty if <code>null</code> string input
java/ui/src/main/java/com/google/security/zynamics/bindiff/utils/HtmlUtils.java