mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
small refactorings
This commit is contained in:
@@ -2,9 +2,9 @@ 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"
|
||||
// sanitize also note titles, label values etc. - there are so many usages which make it difficult to guarantee all of them
|
||||
// are properly handled
|
||||
// secondarily, it (partly) protects against "CSS takeover"
|
||||
// sanitize also note titles, label values etc. - there are so many usages which make it difficult
|
||||
// to guarantee all of them are properly handled
|
||||
function sanitize(dirtyHtml) {
|
||||
if (!dirtyHtml) {
|
||||
return dirtyHtml;
|
||||
|
||||
Reference in New Issue
Block a user