From 29c3b61a511b96360b897ed7bda5a095aabc474f Mon Sep 17 00:00:00 2001 From: Mhykol Date: Sun, 19 May 2024 13:47:13 -0400 Subject: Allow iframes for blog --- assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/js/main.js b/assets/js/main.js index a0c714b..4932e53 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -87,7 +87,7 @@ const getBlog = async (x) => { res('success') }) prism.then(output => { - main.body.innerHTML = DOMPurify.sanitize(text) + main.body.innerHTML = DOMPurify.sanitize(text, { ADD_TAGS: ["iframe"], ADD_ATTR: ['allow', 'allowfullscreen', 'frameborder', 'scrolling'] }) eventListener() window.scrollTo(0, 0) }) -- cgit v1.2.3-70-g09d2