写一个还原的函数,比如
public static String realRows(String temp){
    int i;    do{
      i = temp.indexOf("<");
      if(i >= 0)
        temp = temp.substring(0,i) + "&lt;" + temp.substring(i + 1);
    }while(temp.indexOf("<")>=0);    do{
      i = temp.indexOf(">");
      if(i >= 0)
        temp = temp.substring(0,i) + "&gt;" + temp.substring(i + 1);
    }while(temp.indexOf(">") >= 0);    do{
      i = temp.indexOf("\r\n");
      System.out.println("i=" + i);
      if(i >= 0)
        temp = temp.substring(0,i) + "<BR>" + temp.substring(i + 2);
    }while(temp.indexOf("\r\n")>=0);    do{
      i = temp.indexOf(" ");
      if(i >= 0){
        temp = temp.substring(0,i) + "&nbsp;" + temp.substring(i + 1);
      }
    }while(temp.indexOf(" ")>=0);    return temp;
  }好用就结帐吧