Fixed filter XSS should allow ordered list specify start number
This commit is contained in:
@@ -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) + '"';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user