Commit 462bdcd
Merge pull request from GHSA-cxjc-r2fp-7mq6
* Add config option `allowUnsafeHtml`: default is `false` which results in
`<` being replaced with `<`
* Add config option `linkFilter`: can be a function or array of filter pairs
to control exactly what filtering is applied
This update should minimally affect production applications:
* The behavior of existing links with HTML content will be unchanged
* Existing links that are edited and saved will be filtered (this is only if
the link is edited, other content within the editor can be edited without
affecting the link)
* Newly created links will be filtered by default
* For production code to continue working as-is with new data the application
code will have to be updated to specify `true` for the `LinkDialog` plugin's
`allowUnsafeHtml` option
(cherry picked from commit 7d9d492)1 parent d7294be commit 462bdcd
File tree
2 files changed
+56
-3
lines changed- _editor/plugins
- tests/editor
2 files changed
+56
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
| |||
252 | 268 | | |
253 | 269 | | |
254 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
255 | 281 | | |
256 | 282 | | |
257 | 283 | | |
| |||
629 | 655 | | |
630 | 656 | | |
631 | 657 | | |
632 | | - | |
633 | | - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
634 | 667 | | |
635 | 668 | | |
636 | 669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
39 | 59 | | |
40 | 60 | | |
41 | 61 | | |
| |||
0 commit comments