// Class web.Title
// jhous.yeah.netpackage web ;public class Tool {
public static String htmlShow(String mess){
StringBuffer sb = new StringBuffer();
for(int i=0;i<mess.length();i++){
char c = mess.charAt(i);
if(c == '\n'){
sb.append("<br>");
}else if(c == '"') {
sb.append(""");
}else if(c == ' ') {
sb.append(" ");
}else if(c == '>') {
sb.append(">");
}else if(c == '<') {
sb.append("<");
}else{
sb.append(c);
}
}
return sb.toString();
} public static void main (String[] argv){
//Tool c = new Tool(); System.out.println(Tool.htmlShow("<a href=\"index.jsp\">"));
}
}
// jhous.yeah.netpackage web ;public class Tool {
public static String htmlShow(String mess){
StringBuffer sb = new StringBuffer();
for(int i=0;i<mess.length();i++){
char c = mess.charAt(i);
if(c == '\n'){
sb.append("<br>");
}else if(c == '"') {
sb.append(""");
}else if(c == ' ') {
sb.append(" ");
}else if(c == '>') {
sb.append(">");
}else if(c == '<') {
sb.append("<");
}else{
sb.append(c);
}
}
return sb.toString();
} public static void main (String[] argv){
//Tool c = new Tool(); System.out.println(Tool.htmlShow("<a href=\"index.jsp\">"));
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货