Customizing Sanitization Settings
IBM® Cúram Social Program Management contains a sanitization library. The library sanitizes data and property values throughout the application to remove HTML markup that is potentially malicious.
About this task
The allowlist, which is installed by default, supports a set of HTML elements and attributes that are deemed safe and, therefore, do not require filtering out. To customize the allowlist, add HTML elements and attributes that are deemed safe, and remove HTML elements and attributes that are deemed potentially malicious.
The following example outlines the format that entries in the allowlist file must match:
tag=attribute1,attribute1
For example, an allowlist that contains the following entries is declaring that the
a, div, and h1 HTML elements are safe:
a=href
div=
h1=
The allowlist also declares the href attribute is safe when it is used on an
a HTML element. All other HTML elements and attributes are filtered out.
The allowlist of HTML elements and attributes is defined in the default-secure-sanitize-allowlist.properties application resource file. To customize the allowlist, choose one of the options in the following procedure.
Procedure
Choose one of the following options: