mirror of https://github.com/status-im/codimd.git
Update to allow li tag specify value number
This commit is contained in:
parent
91949be651
commit
1ca39d9c8e
|
@ -9,6 +9,8 @@ var dataUriRegex = /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base
|
||||||
var whiteList = filterXSS.whiteList;
|
var whiteList = filterXSS.whiteList;
|
||||||
// allow ol specify start number
|
// allow ol specify start number
|
||||||
whiteList['ol'] = ['start'];
|
whiteList['ol'] = ['start'];
|
||||||
|
// allow li specify value number
|
||||||
|
whiteList['li'] = ['value'];
|
||||||
// allow style tag
|
// allow style tag
|
||||||
whiteList['style'] = [];
|
whiteList['style'] = [];
|
||||||
// allow kbd tag
|
// allow kbd tag
|
||||||
|
|
Loading…
Reference in New Issue