public String getSubject(int len) { StringBuilder tmp = new StringBuilder(); for (int i = 0; i < this.lev; i++) { tmp.append(" "); } return CommonUtil.showHtml(tmp + CommonUtil.cropByte(this.subject, len, "...")); }
public String getContentView() { if ("1".equals(this.html)) { return HttpLinker.getLinkedSource(CommonUtil.rplc(this.content, "<", "<")); } else if ("0".equals(this.html)) { return HttpLinker.getLinkedSource(CommonUtil.showHtml(this.content)); } return HttpLinker.getLinkedSource(this.content); }
public String getWhen(String format) { if (this.when == null) return ""; return CommonUtil.formatDate(this.when, format); }
public String getWriter(int len) { return CommonUtil.showHtml(CommonUtil.cropByte(getWriter(), len, ".")); }