plugins 异步加载模块

This commit is contained in:
life
2015-10-27 18:23:51 +08:00
parent 848f1aff92
commit 0e0697e50b
8 changed files with 80 additions and 23 deletions

View File

@@ -195,13 +195,13 @@ function stripUnsafeAttrs (str) {
}
module.exports.stripUnsafeAttrs = stripUnsafeAttrs;
function stripUnsafeTags (str) {
function stripUnsafeTags (str, tags) {
// var el = /<(?:wbr|form|input|font|blink|script|style|comment|plaintext|xmp|link|listing|meta|body|frame|frameset)\b/;
var ct = 0, max = 2;
// Prohibited elements
var otherTags = ['wbr','style', 'comment', 'plaintext', 'xmp', 'listing',
var otherTags = tags || ['wbr','style', 'comment', 'plaintext', 'xmp', 'listing',
// 以下是evernote禁止的
'applet','base','basefont','bgsound','blink','body','button','dir','embed','fieldset','frameset','head',
'html','iframe','ilayer','input','isindex','label','layer','legend','link','marquee','menu','meta','noframes',