摘要: //编码函数: function htmlEncode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&amp;"); s = s.replace(/</g, "&lt;"); s = s.replace(/>/g, "&gt;"); s = s.replace(/'/g, "&apos;"); s = s.repl 阅读全文
posted @ 2013-03-04 15:38 zero@ 阅读(2161) 评论(0) 推荐(0) 编辑