提交 c77e832a 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/regex_ie_error' into 'wrdp'

修复IE正则表达式解析错误

See merge request o2oa/o2oa!6367
......@@ -3449,7 +3449,8 @@ debugger;
filterHtml: function(html){
var content = html.replace(/(?:<script[\s\S]*?)(?:(?:<\/script>)|(?:\/>))/gmi, "");
// content = content.replace(/(?<=[\"\'])javascript\:(?=.*")/gmi, "");
content = content.replace(/(?<=\s)on\w*|src|href(?=\=[\"\'])/gmi, function(match){
//content = content.replace(/(?<=\s)on\w*|src|href(?=\=[\"\'])/gmi, function(match){
content = content.replace(/\son\w*|src|href(?=\=[\"\'])/gmi, function(match){
return "data-"+match;
});
return content;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册