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 長春語林科技 閱讀(184) 評論(0)  編輯  收藏 所屬分類: util
          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 郧西县| 贵阳市| 信宜市| 鹤峰县| 吉木乃县| 轮台县| 涟源市| 兴城市| 福泉市| 宽城| 新竹市| 崇信县| 海城市| 博兴县| 宿州市| 磐石市| 古丈县| 靖江市| 原平市| 南涧| 河曲县| 拜城县| 昭通市| 巫山县| 谷城县| 宝清县| 南投县| 崇仁县| 北辰区| 略阳县| 龙井市| 乌拉特后旗| 玉环县| 镇雄县| 平山县| 汾西县| 四子王旗| 杭州市| 获嘉县| 平乐县| 北碚区|