DLSV2-637 Sanitise html strings submitted to database using Jodit edi… #1373
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…tor throughout solution
JIRA link
DLSV2-637
Description
The html editor is sanitised to only allow clean html send to the server. At the server, the html string is again sanitised to make sure no risky html is eventually saved in the database. This is done using the dompurify library at client side and HTMLSanitizer package on the server side. The server side only removes iframe and img html tags but this can be changed to add more html tags if we want to.
Screenshots
No Screenshots available
Developer checks
I have: