首页 > 应用开发 > IT综合 > 特殊字符的处理。。¥$$$
while (true) {
StringBuffer sb = new StringBuffer();
int index = tmpMailContent.indexOf("$");
if (index>=0) {
if (index>0) {
sb.append(tmpMailContent.substring(0,index));
}
sb.append("$");
sb.append(tmpMailContent.substring(index+1));
tmpMailContent = sb.toString();
} else {
break;
}
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/78156/viewspace-1020305/ ,如需转载,请注明出处,否则将追究法律责任。