Merge pull request #3480 from contributor/feature/pageUrlSanitizeUrl

Fix pageUrl and clipping selection can create multiple notes for the same Url
This commit is contained in:
zadam
2023-01-03 22:28:37 +01:00
committed by GitHub
4 changed files with 19 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
const sanitizeHtml = require('sanitize-html');
const sanitizeUrl = require('@braintree/sanitize-url').sanitizeUrl;
// intended mainly as protection against XSS via import
// secondarily it (partly) protects against "CSS takeover"
@@ -50,5 +51,6 @@ function sanitize(dirtyHtml) {
}
module.exports = {
sanitize
sanitize,
sanitizeUrl
};