mirror of
https://github.com/openvk/openvk
synced 2025-03-15 05:55:29 +03:00
Change regex
Теперь оно удаляет все теги а не только <br>
This commit is contained in:
parent
1fcc372f18
commit
4ee9a0d4bf
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ $(document).on("click", "#publish_post", async (e) => {
|
||||||
e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.outerHTML = ""
|
e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.outerHTML = ""
|
||||||
}), Function.noop]);
|
}), Function.noop]);
|
||||||
|
|
||||||
document.getElementById("pooblish").innerHTML = e.currentTarget.parentNode.parentNode.parentNode.parentNode.parentNode.querySelector(".really_text").innerHTML.replace(/<br>/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";
|
document.querySelector(".ovk-diag-body").style.padding = "9px";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue