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

-> the value is already sanitized in line 112, there's no need to call htmlSanitizer a second time here
This commit is contained in:
Panagiotis Papadopoulos 2025-03-08 15:27:04 +01:00
parent 91c37fa235
commit 08a6053c38

View File

@ -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");
}