function disableNodes(s) {
// 禁用script标记(包括在属性中设置事件属性)
var scriptPattern = new RegExp('<script[^>]*>.*<\/script\s*>', 'gi');
s = s.replace(scriptPattern, '');
//禁用frame(iframe)标记
var framePattern = new RegExp('<i?frame[^>]*>.*<\/i?frame\s*>', 'gi');
s = s.replace(framePattern, '');
var formPattern = new RegExp('<form[^>]*>.*</form\s*>', 'gi');
s = s.replace(formPattern, '');