又修复了一系列 MTA 统计问题

This commit is contained in:
chenjuntao
2018-09-08 16:16:27 +08:00
parent c44aa52f5f
commit 7c6a2e9767
6 changed files with 16 additions and 13 deletions

View File

@ -47,6 +47,14 @@ public class StringUtils {
return displayName + "(" + description + ")";
}
public static String eliminateHtmlContent(String s) {
if (TextUtils.isEmpty(s)) return "";
s = Html.fromHtml(s).toString();
s = s.replace("\n", "");
return s;
}
/**
* 截取字符串部分长度,超出的以 "..." 代替
*