Fixed filter XSS should allow ordered list specify start number

This commit is contained in:
Cheng-Han, Wu 2016-03-04 23:17:59 +08:00
parent 845ef9bad6
commit 049eae5024

View file

@ -16,6 +16,10 @@ var filterXSSOptions = {
// escape its value using built-in escapeAttrValue function
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
}
// allow ol specify start number
if (tag === 'ol' && name === 'start') {
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
}
}
};