ITeye博客

安全的jQuery(selExp).html(content)

bellstar · 2009-05-21 10:18 · javascript · Markdown


				jQuery.prototype.html_script = jQuery.prototype.html;
				jQuery.prototype.html = function(value){
					if(value){
						value = value.replace(/<script.*?>[\s\s]*?(?:<\/script>)/ig,'');
					}
					return this.html_script(value);
				};

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。