Пример #1
0
 public String getSubject(int len) {
   StringBuilder tmp = new StringBuilder();
   for (int i = 0; i < this.lev; i++) {
     tmp.append("&nbsp;");
   }
   return CommonUtil.showHtml(tmp + CommonUtil.cropByte(this.subject, len, "..."));
 }
Пример #2
0
 public String getContentView() {
   if ("1".equals(this.html)) {
     return HttpLinker.getLinkedSource(CommonUtil.rplc(this.content, "<", "&lt;"));
   } else if ("0".equals(this.html)) {
     return HttpLinker.getLinkedSource(CommonUtil.showHtml(this.content));
   }
   return HttpLinker.getLinkedSource(this.content);
 }
Пример #3
0
 public String getWhen(String format) {
   if (this.when == null) return "";
   return CommonUtil.formatDate(this.when, format);
 }
Пример #4
0
 public String getWriter(int len) {
   return CommonUtil.showHtml(CommonUtil.cropByte(getWriter(), len, "."));
 }