carbon-registry icon indicating copy to clipboard operation
carbon-registry copied to clipboard

Sanitize rich text editor content before rendering in registry ui

Open UdeshAthukorala opened this issue 10 months ago • 11 comments

Purpose

Sanitize rich text editor content before rendering in registry ui using domPurify library[1][2]. DomPurify was already used in master branch for react console to Sanitize email template body input before rendering preview[3]

[1] https://www.npmjs.com/package/dompurify [2] https://unpkg.com/[email protected]/dist/purify.js [3] https://github.com/wso2/identity-apps/pull/5599

UdeshAthukorala avatar Apr 16 '24 15:04 UdeshAthukorala