Home > widget-integration > FilterRender > xssFilterOption
FilterRender.xssFilterOption() method
Filters XSS-unsafe values from option values up to the given size.
Iterates option values and excludes any whose label, displayName, or key contains potentially malicious content as detected by FilterValidationHelper.
Signature:
xssFilterOption(option: any, size: number): any[];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
option |
any |
Filter option configuration with a |
|
size |
number |
Maximum number of safe values to return |
Returns:
any[]
Array of XSS-safe filter values, up to size items