Use DOMPurify.sanitize to remove potentially harmful html/js code.
the raw text to sanitize.
Allowed tags and elements in a string.
Use DOMPurify.sanitize to remove potentially harmful html/js code.