Closed raphael-inglin-ergon closed 10 months ago
Allows the user to supply HTML as TrustedHTML instead of only as string, to satisfy trusted-type policies. (see https://web.dev/trusted-types/)
This PR contains:
string
TrustedHTML
NgxEditorServiceConfig
SanitizeHtmlPipe
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.
feat: add support for TrustedHTML / trusted-types
Allows the user to supply HTML as TrustedHTML instead of only as string, to satisfy trusted-type policies. (see https://web.dev/trusted-types/)
This PR contains:
Breaking Changes?
Checklist
Describe Your Changes
string
now also acceptTrustedHTML
NgxEditorServiceConfig
can be of typeTrustedHTML
in addition tostring
SanitizeHtmlPipe
only transforms values that are not alreadyTrustedHTML
Does this PR affects any existing issues?