默认白名单:修改代码顺序

This commit is contained in:
Zongmin Lei
2014-03-11 15:19:44 +08:00
parent 576b0b79f7
commit c1a8436521

View File

@@ -7,42 +7,42 @@
// 默认白名单
var whiteList = {
a: ['target', 'href', 'title'],
audio: ['autoplay', 'controls', 'loop', 'preload', 'src'],
b: [],
blockquote: [],
br: [],
cite: [],
code: [],
div: [],
dl: [],
dt: [],
em: [],
footer: [],
h1: [],
h2: [],
h3: [],
h4: [],
h5: [],
h6: [],
header: [],
hr: [],
span: [],
strong: [],
b: [],
i: [],
br: [],
p: [],
pre: [],
code: [],
a: ['target', 'href', 'title'],
img: ['src', 'alt', 'title', 'width', 'height'],
div: [],
table: ['width', 'border'],
tr: ['rowspan'],
td: ['width', 'colspan'],
th: ['width', 'colspan'],
tbody: [],
thead: [],
ul: [],
li: [],
ol: [],
dl: [],
dt: [],
em: [],
cite: [],
p: [],
pre: [],
section:[],
header: [],
footer: [],
blockquote: [],
audio: ['autoplay', 'controls', 'loop', 'preload', 'src'],
span: [],
strong: [],
table: ['width', 'border'],
tbody: [],
td: ['width', 'colspan'],
th: ['width', 'colspan'],
thead: [],
tr: ['rowspan'],
ul: [],
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width']
};