Created on 28 March 2020
icon_unfollowing
Login to follow
reactive-html-sanitizer

Reactive Html Sanitizer

Stable version 1.1.0 (Compatible with OutSystems 11)
Uploaded on 26 November 2021 by 
reactive-html-sanitizer

Reactive Html Sanitizer

Documentation
1.1.0

Add a dependency to 

Add the SanitizedHtml block to your reactive or mobile screen or block.

Then set the following mandatory attributes:

  • Value, this should contain the HTML that you want to sanitize
  • ResetWhiteList, the component remembers previous allow/disallow lists, set this parameter to true, to first reset the whitelist to the original list of allowed attributes, tags, and CSS-styles, as listed in the component description.


The following parameters are optional and only required if you want to adjust the white-list of attributes, tags, and CSS-styles.

  • AllowedAttributes, comma-separated list of HTML attributes that should be added to the white-list
  • DisallowedAttributes, comma-separated list of HTML attributes that should be removed from the white-list
  • AllowedTags, comma-separated list of HTML tags that should be added to the white-list
  • DisallowedTags, comma-separated list of HTML tags that should be removed from the white-list
  • AllowedCssStyles, comma-separated list of CSS-styles that should be added to the white-list
  • DisallowedCssStyles, comma-separated list of CSS-styles that should be removed from the white-list


The component will silently ignore, empty list items, or strings with only a , (comma) or a , at the beginning or end of the parameters.


Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
Reactive Html Sanitizer has no dependencies.