posts - 325,  comments - 25,  trackbacks - 0
          public static String filterHtml(String input) {
            if (input == null) {
             return null;
            }
            if (input.length() == 0) {
             return input;
            }
            input = input.replaceAll("&", "&");
            input = input.replaceAll("<", "&lt;");
            input = input.replaceAll(">", "&gt;");
            input = input.replaceAll(" ", "&nbsp;");
            input = input.replaceAll("'", "'");
            input = input.replaceAll("\"", "&quot;");
            return input.replaceAll("\n", "<br>");
           }
          posted on 2008-08-17 14:38 長春語林科技 閱讀(183) 評論(0)  編輯  收藏 所屬分類: util
          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 新沂市| 绥化市| 泽州县| 彭山县| 托里县| 天柱县| 个旧市| 苏尼特右旗| 富宁县| 土默特左旗| 柳州市| 上林县| 泸水县| 延安市| 宜州市| 且末县| 伊金霍洛旗| 上饶市| 九龙县| 平南县| 仁寿县| 金溪县| 页游| 明光市| 孙吴县| 都安| 麦盖提县| 黔西县| 长海县| 溆浦县| 东港市| 玉林市| 海林市| 巴林右旗| 昭平县| 临洮县| 余姚市| 洞口县| 大足县| 苗栗县| 安乡县|