摘要: 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,"&nbsp;"); s = s.replace(/\'/g 阅读全文
posted @ 2013-05-22 21:10 xyun 阅读(300) 评论(0) 推荐(0)