-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Milestone
Description
I think it is also a good idea to update some of the few options for the DOMPurify configuration option to return trusted type by adding the
RETURN_TRUSTED_TYPEproperty set to true whenDOMPurify.sanitize()is used:
| export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM: true; }): HTMLElement; |
Reference:
https://github.com/cure53/DOMPurify?tab=readme-ov-file#what-about-dompurify-and-trusted-types
https://web.dev/articles/trusted-types#use_a_library
Originally posted by @martgil in #5575 (review)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels