mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 01:16:56 +00:00
plugins 异步加载模块
This commit is contained in:
4
node_modules/resanitize/resanitize.js
generated
vendored
4
node_modules/resanitize/resanitize.js
generated
vendored
@@ -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',
|
||||
|
Reference in New Issue
Block a user