java去掉jsp标签内容的方法
摘要:
//去掉内容的标签
public static String removeTag(String count){
try {
int tagCheck=-1;
do {
int a = count.indexOf("");
int len = count.length();
String c=null;
c = count.substring(0, a);
if(b == -1)
b = a;
String d = count.substring((b + 1), len);
count = c + d;
tagCheck = count.indexOf("");
} while (tagCheck != -1);
} catch (Exception e) {
System.out.println("去掉内容标签异常,可能是该内容 阅读全文
posted @ 2013-07-22 13:00 qgc 阅读(561) 评论(0) 推荐(0)
浙公网安备 33010602011771号