mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
feat: simplify note title & headline extraction
This commit is contained in:
@@ -9,3 +9,7 @@ export function getDummyDocument() {
|
||||
const doc = parseHTML("<div></div>");
|
||||
return typeof DOMParser === "undefined" ? doc : doc;
|
||||
}
|
||||
|
||||
export function getInnerText(element) {
|
||||
return element.innerText || element.textContent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user