默认白名单,img增加width和height属性

This commit is contained in:
leizongmin
2013-07-11 22:55:41 +08:00
parent 30f6f51afd
commit 0d16433a32

View File

@@ -25,7 +25,7 @@ var defaultWhiteList = {
pre: [],
code: [],
a: ['target', 'href', 'title'],
img: ['src', 'alt', 'title'],
img: ['src', 'alt', 'title', 'width', 'height'],
div: [],
table: ['width', 'border'],
tr: [],