默认白名单,img增加width和height属性
This commit is contained in:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user