Skip to content

dxp/issues#758: Set up sanitizer module

Eusebio Chirino requested to merge feature/758-sanitize-html into develop

In this PR:

  • Set up sanitizer module
  • Create a new component for HTML sanitizing purposes
  • Set up eslint module to force sanitize HTML

How to test:

  • Try to use dangerouslySetInnerHTML
  • Check that this error is produced (Dangerous property 'dangerouslySetInnerHTML' without sanitizer found) when executing npm run lint
  • Try to build the application and check the same error is raised
  • Use the new component renderHTML instead, and check that it works properly and no errors appears
Edited by Eusebio Chirino

Merge request reports

Loading