mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
Fixed filter XSS should allow ordered list specify start number
This commit is contained in:
parent
845ef9bad6
commit
049eae5024
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ var filterXSSOptions = {
|
||||||
// escape its value using built-in escapeAttrValue function
|
// escape its value using built-in escapeAttrValue function
|
||||||
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
|
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
|
||||||
}
|
}
|
||||||
|
// allow ol specify start number
|
||||||
|
if (tag === 'ol' && name === 'start') {
|
||||||
|
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue