From 1ca39d9c8e47ae2ce5a524504beb0aaed221a97c Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 17 Feb 2017 21:56:35 +0800 Subject: [PATCH] Update to allow li tag specify value number --- public/js/render.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/render.js b/public/js/render.js index a61fc8fb..5d6d0aa2 100644 --- a/public/js/render.js +++ b/public/js/render.js @@ -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