aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-tools.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-01 06:51:28 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-01 06:51:28 +0300
commite25ed43998d0134c38985f3f80a3e193b1ebf9ee (patch)
tree36d0148b3eb322bb22b0f3e2352a56a9130151ae /src/js/arching-kaos-tools.js
parent7eb510a56a0015ccd887b694bdb497309dc42f87 (diff)
downloadarching-kaos-web-ui-e25ed43998d0134c38985f3f80a3e193b1ebf9ee.tar.gz
arching-kaos-web-ui-e25ed43998d0134c38985f3f80a3e193b1ebf9ee.tar.bz2
arching-kaos-web-ui-e25ed43998d0134c38985f3f80a3e193b1ebf9ee.zip
Sanitizing Markdown
Diffstat (limited to 'src/js/arching-kaos-tools.js')
-rw-r--r--src/js/arching-kaos-tools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js
index 3d5b1d1..e704eb7 100644
--- a/src/js/arching-kaos-tools.js
+++ b/src/js/arching-kaos-tools.js
@@ -507,7 +507,7 @@ function getipfstext(ipfs,articleid){
lines.splice(0,1);
// join the array back into a single string
var newtext = lines.join('\n');
- pre.innerHTML = marked.parse(newtext);
+ pre.innerHTML = DOMPurify.sanitize(marked.parse(newtext));
divs.appendChild(pre);
}
progressPlaceholder.max++;