Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: restoring md sanization

Ilian Sapundshiev0ca66ffed1d7
diff --git a/app/services/utils-io.ts b/app/services/utils-io.ts
index cfa6b10cf..19ec2c693 100644
--- a/app/services/utils-io.ts
+++ b/app/services/utils-io.ts
@@ -1118,8 +1118,7 @@ export function loadFileContentPromise(
export function removeMarkDown(mdContent) {
if (!mdContent) return '';
- let result = marked(mdContent); // marked(DOMPurify.sanitize(mdContent));
- console.log(result);
+ let result = marked(DOMPurify.sanitize(mdContent));
const span = document.createElement('span');
span.innerHTML = result;
result = span.textContent || span.innerText;