⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
fix(import-html): Work around parser bug that mangles attribute values
AverageHelper899ddafd90e6
diff --git a/lib/api/controllers/migration/importFromHTMLFile.ts b/lib/api/controllers/migration/importFromHTMLFile.tsindex b3b39138..fb87dd02 100644--- a/lib/api/controllers/migration/importFromHTMLFile.ts+++ b/lib/api/controllers/migration/importFromHTMLFile.ts@@ -81,9 +81,9 @@ async function processBookmarks(} else if (item.type === "element" && item.tagName === "a") {// process link- const linkUrl = item?.attributes.find(- (e) => e.key.toLowerCase() === "href"- )?.value;+ const linkUrl = item?.attributes+ .find((e) => e.key.toLowerCase() === "href")+ ?.value.replace(/&/g, "&"); // Replace "&" with "&" to get around parser bugconst linkName = (item?.children.find((e) => e.type === "text") as TextNode)?.content;