-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
2 changed files
with
56 additions
and
3 deletions.
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
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