Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: decode   html5 escape codes

thecodrr0a75048f684a
diff --git a/packages/core/utils/html-parser.js b/packages/core/utils/html-parser.js
index 574c4ddb0..64755bde3 100644
--- a/packages/core/utils/html-parser.js
+++ b/packages/core/utils/html-parser.js
@@ -1,4 +1,5 @@
import { parse } from "node-html-parser";
+import { decodeHTML5 } from "entities";
export const parseHTML =
typeof DOMParser === "undefined"
@@ -11,5 +12,5 @@ export function getDummyDocument() {
}
export function getInnerText(element) {
- return element.innerText || element.textContent;
+ return decodeHTML5(element.innerText || element.textContent);
}