摘要: > 大于>&&符号&"双引号"'单引号'©版权©®已注册商标®™商标(美国)™×乘号×÷除号÷空格‘中文单引号‘’中文单引号’“中文双引号“”中文双引号”…中文省略... 阅读全文
posted @ 2015-02-08 14:01 pretty flower 阅读(239) 评论(0) 推荐(0)
摘要: 若存在特殊字符用此方法,效率高,若不存在就用replacepublic static String repStr(String str) { if(str == null) { return null; } char[] array = str.toCharArray(); fo... 阅读全文
posted @ 2015-02-08 13:54 pretty flower 阅读(193) 评论(0) 推荐(0)
摘要: function toTXT(str){ var RexStr = /\|\"|\'|\&/g str = str.replace(RexStr, function(MatchStr){ switch(MatchStr){ case "": return "& gt;"; ... 阅读全文
posted @ 2015-02-08 13:34 pretty flower 阅读(959) 评论(0) 推荐(0)