dxp/issues#758: Set up sanitizer module
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 executingnpm 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