// 匹配<script></script>的尖括号
function regExpMatch(str) {
str = str.replace(/<\s*script.*?>.*?<\s*\/\s*script.*?>/g, function (a, b) {
if (a) {
return a.replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
});
return str;
}