Skip to content

Build your personal knowledge base with Trilium Notes

refactor(routes/api/clipper): get rid of second htmlSanitizer call for pageUrl

Panagiotis Papadopoulos08a6053c385a
diff --git a/src/routes/api/clipper.ts b/src/routes/api/clipper.ts
index 0b7b315aa9..56f907c2c1 100644
--- a/src/routes/api/clipper.ts
+++ b/src/routes/api/clipper.ts
@@ -123,8 +123,6 @@ function createNote(req: Request) {
note.setLabel("clipType", clipType);
if (pageUrl) {
- pageUrl = htmlSanitizer.sanitizeUrl(pageUrl);
-
note.setLabel("pageUrl", pageUrl);
note.setLabel("iconClass", "bx bx-globe");
}