Reactive Html Sanitizer

Stable version 1.0.0 (Compatible with OutSystems 11)
Published on 28 March 2020 by 
5.0
 (2 ratings)

Reactive Html Sanitizer

Documentation

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.