public static String convertToHtmlText(
      final ThreadRowInfo row,
      boolean showImage,
      int imageQuality,
      final String fgColorStr,
      final String bgcolorStr) {
    HashSet<String> imageURLSet = new HashSet<String>();
    String ngaHtml =
        StringUtil.decodeForumTag(row.getContent(), showImage, imageQuality, imageURLSet);
    if (row.get_isInBlackList()) {
      ngaHtml =
          "<HTML> <HEAD><META http-equiv=Content-Type content= \"text/html; charset=utf-8 \">"
              + "<body bgcolor= '#"
              + bgcolorStr
              + "'>"
              + "<font color='red' size='2'>["
              + blacklistban
              + "]</font>"
              + "</font></body>";
    } else {
      if (imageURLSet.size() == 0) {
        imageURLSet = null;
      }
      if (StringUtil.isEmpty(ngaHtml)) {
        ngaHtml = row.getAlterinfo();
      }
      if (StringUtil.isEmpty(ngaHtml)) {

        ngaHtml = "<font color='red'>[" + hide + "]</font>";
      }
      ngaHtml =
          ngaHtml
              + buildComment(row, fgColorStr, showImage, imageQuality)
              + buildAttachment(row, showImage, imageQuality, imageURLSet)
              + buildSignature(row, showImage, imageQuality)
              + buildVote(row);
      ngaHtml =
          "<HTML> <HEAD><META http-equiv=Content-Type content= \"text/html; charset=utf-8 \">"
              + buildHeader(row, fgColorStr)
              + "<body bgcolor= '#"
              + bgcolorStr
              + "'>"
              + "<font color='#"
              + fgColorStr
              + "' size='2'>"
              + ngaHtml
              + "</font></body>";
    }
    return ngaHtml;
  }