Permalink
Show file tree
Hide file tree
3 changes: 2 additions & 1 deletion
3
modules/tinymce/src/themes/silver/main/ts/ui/dialog/Dialogs.ts
37 changes: 37 additions & 0 deletions
37
modules/tinymce/src/themes/silver/test/ts/headless/window/WindowManagerAlertTest.ts
37 changes: 37 additions & 0 deletions
37
modules/tinymce/src/themes/silver/test/ts/headless/window/WindowManagerConfirmTest.ts
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request from GHSA-gg8r-xjwq-4w92
* TINY-3548: sanitize html in alert/confirm messages * TINY-3548: updated changelog * TINY-3548: updated changelog * TINY-3548: updated changelog
- Loading branch information
Showing
5 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
modules/tinymce/src/themes/silver/main/ts/ui/core/HtmlSanitizer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import createDompurify from 'dompurify'; | ||
|
|
||
| export const sanitizeHtmlString = (html: string): string => createDompurify().sanitize(html); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters