Skip to content

Commit e6faf03

Browse files
committed
清除脚本内容
1 parent 597b053 commit e6faf03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stripscript.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @description 清除脚本内容
3+
* @author 未知
4+
*/
5+
6+
function stripscript(s) {
7+
return s.replace(/<script.*?>.*?<\/script>/ig, '');
8+
}

0 commit comments

Comments
 (0)