From 4ee9a0d4bf07327bb96340abfab624f0233c1bdf Mon Sep 17 00:00:00 2001
From: lalka2016 <99399973+lalka2016@users.noreply.github.com>
Date: Fri, 4 Aug 2023 10:54:20 +0300
Subject: [PATCH] Change regex
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Теперь оно удаляет все теги а не только
---
Web/static/js/al_wall.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js
index 51683bd8..3f230a28 100644
--- a/Web/static/js/al_wall.js
+++ b/Web/static/js/al_wall.js
@@ -305,7 +305,7 @@ $(document).on("click", "#publish_post", async (e) => {
e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.outerHTML = ""
}), Function.noop]);
- document.getElementById("pooblish").innerHTML = e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.querySelector(".really_text").innerHTML.replace(/
/g, '')
+ document.getElementById("pooblish").innerHTML = e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.querySelector(".really_text").innerHTML.replace(/(<([^>]+)>)/gi, '')
document.querySelector(".ovk-diag-body").style.padding = "9px";
})