JSFiddle - React, Tailwind, and code Playground
by aliaksej
JavaScript
var regexp = new RegExp('#([^\\s]*)','g');
function strip(txt){
// replacing the text
return txt.replace(regexp, '');
}
console.log(
strip("<script>alert(123123123)<\/script>")
);