Update to allow li tag specify value number

This commit is contained in:
Wu Cheng-Han 2017-02-17 21:56:35 +08:00
parent 91949be651
commit 1ca39d9c8e
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ var dataUriRegex = /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base
var whiteList = filterXSS.whiteList;
// allow ol specify start number
whiteList['ol'] = ['start'];
// allow li specify value number
whiteList['li'] = ['value'];
// allow style tag
whiteList['style'] = [];
// allow kbd tag