mirror of
https://github.com/status-im/codimd.git
synced 2025-02-04 10:13:52 +00:00
Fixed filter XSS should allow ordered list specify start number
This commit is contained in:
parent
845ef9bad6
commit
049eae5024
@ -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) + '"';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user